AsyncImage95
Remote image loading with SwiftUI phases and Swift95 image treatment.
AsyncImage95 adds the same optional pixelation and image surface while leaving loading, success, and failure policy explicit.
Use it
import Swift95
import SwiftUI
struct AsyncImage95Example: View {
var body: some View {
AsyncImage95(
url: URL(string: "https://example.com/avatar.png"),
isPixelated: false
) { phase in
switch phase {
case .empty:
ProgressView95("Loading")
case let .success(image):
image.resizable().scaledToFill()
case .failure:
Image(systemName: "photo")
@unknown default:
EmptyView()
}
}
.frame(width: 120, height: 90)
}
}Essential behavior
LoadingDelegates URL loading and phase transitions to SwiftUI AsyncImage.
PhasesHandle empty, success, and failure when the surrounding layout needs deterministic placeholders.
RenderingPixelation can be disabled for photographic content.