asyncImageURLSession

A modifier that adds a URL session for asynchronous images contained in the view to use when fetching image data.

View ModifieriOS 27.0+macOS 27.0+tvOS 27.0+watchOS 27.0+visionOS 27.0+asyncImageURLSession(_:) in SwiftUI

Declaration

React
compose().asyncImageURLSession(
  urlSession: 'shared' | 'ephemeral'
)
Swift
nonisolated func asyncImageURLSession(
    _ urlSession: URLSession
) -> some View

Parameters

See also

More in Navigation.