searchText
TypeScriptget searchText(): (PHPickerSearchText) | nullSwift declarationvar searchText: PHPickerSearchText? { get set }The search text for the picker. Default is `nil`.
struct · iOS 14.0+ · SDK 27.1
struct PHPickerConfigurationA configuration for `PHPickerViewController`.
get searchText(): (PHPickerSearchText) | nullSwift declarationvar searchText: PHPickerSearchText? { get set }The search text for the picker. Default is `nil`.
set searchText(value: (PHPickerSearchText) | null)Swift declarationvar searchText: PHPickerSearchText? { get set }The search text for the picker. Default is `nil`.
static initPhotoLibrary(photoLibrary: _Photos_PHPhotoLibrary): PHPickerConfigurationSwift declarationinit(photoLibrary: PHPhotoLibrary)Initializes a new configuration with the `photoLibrary` the picker should use.
get selectionLimit(): numberSwift declarationvar selectionLimit: IntThe maximum number of assets that can be selected. Default is 1. Setting `selectionLimit` to 0 means maximum supported by the system.
set selectionLimit(value: number)Swift declarationvar selectionLimit: IntThe maximum number of assets that can be selected. Default is 1. Setting `selectionLimit` to 0 means maximum supported by the system.
get metadataOptions(): PHPickerMetadataOptionsSwift declarationvar metadataOptions: PHPickerMetadataOptions { get set }Metadata options for the picker. Default is `[]`.
set metadataOptions(value: PHPickerMetadataOptions)Swift declarationvar metadataOptions: PHPickerMetadataOptions { get set }Metadata options for the picker. Default is `[]`.
get disabledCapabilities(): PHPickerCapabilitiesSwift declarationvar disabledCapabilities: PHPickerCapabilities { get set }Capabilities of the picker that should be disabled. Default is `[]`.
set disabledCapabilities(value: PHPickerCapabilities)Swift declarationvar disabledCapabilities: PHPickerCapabilities { get set }Capabilities of the picker that should be disabled. Default is `[]`.
get edgesWithoutContentMargins(): _UIKit_NSDirectionalRectEdgeSwift declarationvar edgesWithoutContentMargins: NSDirectionalRectEdge { get set }Edges of the picker that have no margin between the content and the edge (e.g. without bars in between). Default is `[]`.
set edgesWithoutContentMargins(value: _UIKit_NSDirectionalRectEdge)Swift declarationvar edgesWithoutContentMargins: NSDirectionalRectEdge { get set }Edges of the picker that have no margin between the content and the edge (e.g. without bars in between). Default is `[]`.
get preselectedAssetIdentifiers(): Array<string>Swift declarationvar preselectedAssetIdentifiers: [String] { get set }Local identifiers of assets to be shown as selected when the picker is presented. Default is an empty array. `preselectedAssetIdentifiers` should be an empty array if `selectionLimit` is 1 or `photoLibrary` is not specified. Returned item providers for preselected assets are always empty.
set preselectedAssetIdentifiers(value: Array<string>)Swift declarationvar preselectedAssetIdentifiers: [String] { get set }Local identifiers of assets to be shown as selected when the picker is presented. Default is an empty array. `preselectedAssetIdentifiers` should be an empty array if `selectionLimit` is 1 or `photoLibrary` is not specified. Returned item providers for preselected assets are always empty.
get preferredAssetRepresentationMode(): PHPickerConfiguration_AssetRepresentationModeSwift declarationvar preferredAssetRepresentationMode: PHPickerConfiguration.AssetRepresentationModeThe preferred representation mode of selected assets. Default is `.automatic`. Setting `preferredAssetRepresentationMode` to `.automatic` means the best representation determined by the system will be used.
set preferredAssetRepresentationMode(value: PHPickerConfiguration_AssetRepresentationMode)Swift declarationvar preferredAssetRepresentationMode: PHPickerConfiguration.AssetRepresentationModeThe preferred representation mode of selected assets. Default is `.automatic`. Setting `preferredAssetRepresentationMode` to `.automatic` means the best representation determined by the system will be used.
get mode(): PHPickerModeSwift declarationvar mode: PHPickerModeThe mode of the picker. Default is `.default`.
set mode(value: PHPickerMode)Swift declarationvar mode: PHPickerModeThe mode of the picker. Default is `.default`.
get filter(): (PHPickerFilter) | nullSwift declarationvar filter: PHPickerFilter?Types of assets that can be shown. Default is `nil`. Setting `filter` to `nil` means all asset types can be shown.
set filter(value: (PHPickerFilter) | null)Swift declarationvar filter: PHPickerFilter?Types of assets that can be shown. Default is `nil`. Setting `filter` to `nil` means all asset types can be shown.
get selection(): PHPickerConfiguration_SelectionSwift declarationvar selection: PHPickerConfiguration.SelectionThe selection behavior of the picker. Default is `.default`.
set selection(value: PHPickerConfiguration_Selection)Swift declarationvar selection: PHPickerConfiguration.SelectionThe selection behavior of the picker. Default is `.default`.
static init(): PHPickerConfigurationSwift declarationinit()Initializes a new configuration with the system photo library. This configuration never returns asset identifiers.
No declarations were skipped in this snapshot.