Instance Property

isSynchronous

A Boolean value that determines whether Photos processes the image request synchronously.

Declaration

var isSynchronous: Bool { get set }

Discussion

If false (the default), the requestImage(for:targetSize:contentMode:options:resultHandler:) method returns immediately. Depending on the deliveryMode property, Photos may call your resultHandler block before the method returns, at some later time, or both.

If true, the requestImage(for:targetSize:contentMode:options:resultHandler:) method blocks the calling thread until image data is ready or an error occurs. Photos calls your result handler block exactly once.