A Boolean value that specifies whether Photos can download the requested asset resource data from iCloud.
SDKs
- iOS 9+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10+
Framework
- Photos
Declaration
var isNetworkAccessAllowed: Bool { get set }
Discussion
If true
, and the requested resource data is not stored on the local device, Photos downloads that data from iCloud. To be notified of the download’s progress, use the progress
property to provide a block that Photos calls periodically while downloading the resource data. If false
(the default), and the resource data is not on the local device, Photos calls the completion
block you provided in your request, with an NSError
object indicating that the resource requires network access.