iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

AsyncImage

Async URL Image

Loads and displays an image from the specified URL load request.

Explore Async URL Image on iPhone in portrait, with SwiftUI code and Apple API documentation.

let imageURL = URL(string: "https://exploreswiftui.com/images/cats.jpg")!

var body: some View {
    AsyncImage(request: URLRequest(url: imageURL))
}
iOS 27.0+ iPadOS 27.0+ macOS 27.0+ watchOS 27.0+ tvOS 27.0+ visionOS 27.0+

Every available iPhone screenshot for Async URL Image.

1 views