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.
Configures the customization behavior of customizable tab view content.
A date picker style that displays each component as columns in a scrollable wheel