Class

PHProjectAssetElement

An element that represents a media asset within project section content.

Declaration

class PHProjectAssetElement : PHProjectElement

Overview

Access the underlying PHAsset by converting the provided cloudAssetIdentifiers to a assetLocalIdentifier, then calling fetchAssets(withLocalIdentifiers:options:).

Topics

Characterizing an Asset Element

var annotation: String

A string annotation attached to the asset.

var cloudAssetIdentifier: PHCloudIdentifier

The asset's identifier in the cloud.

var cropRect: CGRect

A rectangle defining the cropped portion of the asset.

var regionsOfInterest: [PHProjectRegionOfInterest]

An array of regions of interest in the photo asset.

var horizontallyFlipped: Bool

A Boolean indicating whether the asset is vertically flipped.

var verticallyFlipped: Bool

A Boolean indicating whether the asset is vertically flipped.

Relationships

Inherits From

See Also

Subclassing Project Elements

class PHProjectTextElement

An element that represents text within project section content.

class PHProjectJournalEntryElement

An element that represents a journal entry within project section content.

class PHProjectMapElement

An element that represents a map within project section content.