FetchImageTransaction
open class FetchImageTransaction: HTTPTransaction<PlatformImageType>
Attempts to construct a platform-appropriate image object by fetching image data from the given service.
Note
PlatformImageType represents the image type appropriate for the
runtime platform. On iOS and tvOS, it maps to UIImage; on Mac OS X, it’s
NSImage.
-
Initializes a
FetchImageTransactionto retrieve image data from the specified URL.Declaration
Swift
public init(url: URL, processingQueue: DispatchQueue = .transactionProcessing)Parameters
urlThe URL of the image.
View on GitHub
FetchImageTransaction Class Reference