TechnologiesVideo, Photos & Camera

_PhotosUI_SwiftUI cross-import overlay

iOSmacOStvOSwatchOSvisionOS

_PhotosUI_SwiftUI is a cross-import overlay that brings the PhotosPicker control to SwiftUI, letting people choose photos and videos from their library without granting full library authorization. You present the picker and read the user's choices through PhotosPickerItem, which represents each selected photo or video. Use PhotosPickerSelectionBehavior and PhotosPickerStyle to configure how selection works and how the picker appears across iOS, macOS, watchOS, and visionOS.

Selected Items 1

The model value that represents each photo or video a person chooses in the picker.

  • St
    PhotosPickerItem
    An item that can be provided to or provided by the Photos picker.

Configuring the Picker 2

Types that control how selection works and how the PhotosPicker appears.

  • St
    PhotosPickerSelectionBehavior
    A value that determines how the Photos picker handles user selection.
  • St
    PhotosPickerStyle
    A value that determines the style of the Photos picker.

Structures 1

  • St
    PhotosPicker
    A control that allows a user to choose photos and/or videos from the photo library.

Extends 2

ViewPHLivePhoto
← Video, Photos & Camera