Photos Picker Title
Overrides the title of the Photos picker. The title is not visible on small screens, like the iPhone.
Platform Compatibility
Tags
SwiftUI Code
PhotosPicker("Foo", selection: $selectedPhoto)
.photosPickerTitle("Bar")Overrides the title of the Photos picker. The title is not visible on small screens, like the iPhone.
PhotosPicker("Foo", selection: $selectedPhoto)
.photosPickerTitle("Bar")Creates a picker with a title key and selection, and optionally configures the types of items to show and item encoding behavior.
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.
Conditionally prevents interactive dismissal of presentations like popovers, sheets, and inspectors. Dragging the sheet is still possible to a limited extent, as shown in the screenshot, but it will never be dismissed.
Creates a picker that updates the selected property for all sources.
Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels
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.
A compression behavior that prioritizes keeping toolbar items visible over other elements, such as tabs. By default, tabs are prioritized.