Contents

placeholderForCreatedAsset

A placeholder object for the asset that the change request creates.

Declaration

var placeholderForCreatedAsset: PHObjectPlaceholder? { get }

Discussion

Use this property if you need to reference the asset created by a change request within the same change block. For example, the following code, when included in a photo library change block, creates an asset and then adds it to a collection.

For details on change blocks, see PHPhotoLibrary.

See Also

Adding New Assets