Photos Picker
Creates a picker with a title key and selection, and optionally configures the types of items to show and item encoding behavior.
Platform Compatibility
Tags
SwiftUI Code
PhotosPicker("FooBar", selection: $selectedPhoto)
Creates a picker with a title key and selection, and optionally configures the types of items to show and item encoding behavior.
PhotosPicker("FooBar", selection: $selectedPhoto)
Overrides the title of the Photos picker. The title is not visible on small screens, like the iPhone.
Limits the Photos picker to only show items in the specified container. In this case, to the user-created album "CustomAlbum".
Sets the primary and secondary button types of the Photos picker.
Prevents the Photos picker from dismissing automatically. Without this modifier, the Photos picker would automatically dismiss when an image is tapped.
A control group style that presents its content as a menu when the user presses the control, or as a submenu when nested within a larger menu
Creates an instance, with a custom label, that presents the share interface