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 picker style that presents the options as a row of compact elements. When used outside of menus, this style is rendered as a segmented picker. If that is the intended usage, consider segmented instead.
HierarchicalShapeStyle, a shape style that maps to one of the numbered content styles
The list style that describes the behavior and appearance of an inset grouped list.
A system style that displays the components in an editable field, with adjoining stepper that can increment/decrement the selected component
A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy