deselectAssets(withIdentifiers:)

deselectAssets(withIdentifiers:)

deselectAssets(withIdentifiers:) Instance Method of PHPickerViewController Deselects assets that are in a selected state.

func deselectAssets(withIdentifiers identifiers: [String])

Parameters

identifiers

The list of identifiers to deselect.

Discussion

This method ignores assets that are invalid or aren’t in a selected state, and if you don’t specify a library when calling init(photoLibrary:)).