Instance Method

add(_:)

Adds an existing asset to the receiver.

Declaration

func add(_ asset: ALAsset!) -> Bool

Parameters

asset

The asset to add to the receiver.

Return Value

true if asset was added successfully, otherwise false.

Discussion

The method may fail (return false) if the group is not editable, or if the asset could not be added to the group.

You should check the isEditable property of the group to see if it is possible to add an asset to the group.

See Also

Adding Assets

var isEditable: Bool

Indicates whether the application can edit the group.

Deprecated