One Logo Pool Ball
_PhotosUI_SwiftUI · IOS API REFERENCE

PhotosPickerItem

struct · iOS 16.0+ · SDK 27.1

struct PhotosPickerItem

An 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.

Members (3)

init · iOS 16.0+

init

TypeScript
static init(itemIdentifier: string): PhotosPickerItem
Swift declaration
init(itemIdentifier: String)

Creates an item without any representation using an identifier. - Parameters: - itemIdentifier: The local identifier of the item.

get · iOS 16.0+

itemIdentifier

TypeScript
get itemIdentifier(): (string) | null
Swift declaration
var itemIdentifier: String? { get }

The local identifier of the item. It will be `nil` if the Photos picker is created without a photo library.

get · iOS 16.0+

supportedContentTypes

TypeScript
get supportedContentTypes(): Array<_UniformTypeIdentifiers_UTType>
Swift declaration
var supportedContentTypes: [UTType] { get }

All supported content types of the item, in order of most preferred to least preferred.

Skipped declarations

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

All _PhotosUI_SwiftUI types →