Instance Property


A Boolean value that determines whether Photos moves or duplicates files when creating an asset resource.


var shouldMoveFile: Bool { get set }


This property applies only when creating an asset resource with the addResource(with:fileURL:options:) method. If this value is true, Photos moves the specified file into the Photos library to create the asset resource, removing the original file after the asset has been successfully created. When using this option, Photos does not make an intermediary copy of the resource data, so no additional storage space is required.

If this value is false (the default), Photos copies the contents of the original file into the Photos library.