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.
Creates a toggle that updates the selected property for all sources. Once toggled, all sources will have the same value.
Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels
A placement that pins the item to the trailing edge of the toolbar.