init
TypeScriptstatic init(itemIdentifier: string): PhotosPickerItemSwift declarationinit(itemIdentifier: String)Creates an item without any representation using an identifier. - Parameters: - itemIdentifier: The local identifier of the item.
struct · iOS 16.0+ · SDK 27.1
struct PhotosPickerItemAn item that can be provided to or provided by the Photos picker. An item can contain multiple representations. Each representation has a corresponding content type.
static init(itemIdentifier: string): PhotosPickerItemSwift declarationinit(itemIdentifier: String)Creates an item without any representation using an identifier. - Parameters: - itemIdentifier: The local identifier of the item.
get itemIdentifier(): (string) | nullSwift declarationvar itemIdentifier: String? { get }The local identifier of the item. It will be `nil` if the Photos picker is created without a photo library.
get supportedContentTypes(): Array<_UniformTypeIdentifiers_UTType>Swift declarationvar supportedContentTypes: [UTType] { get }All supported content types of the item, in order of most preferred to least preferred.
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
PhotosPickerItem.loadTransferable(type:completionHandler:)
The iOS SDK compiler rejected this binding: cannot find 'AppIntents' in scope
PhotosPickerItem.loadTransferable(type:)
The iOS SDK compiler rejected this binding: cannot find 'AppIntents' in scope