photosPickerStyle(_:)
Sets the mode of the Photos picker.
Declaration
nonisolated func photosPickerStyle(_ style: PhotosPickerStyle) -> some View
Parameters
- mode:
One of the available modes.
Return Value
A Photos picker that uses the specified mode.
See Also
Selecting photos
PhotosPickerphotosPicker(isPresented:selection:matching:preferredItemEncoding:)photosPicker(isPresented:selection:matching:preferredItemEncoding:photoLibrary:)photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:)photosPicker(isPresented:selection:maxSelectionCount:selectionBehavior:matching:preferredItemEncoding:photoLibrary:)photosPickerAccessoryVisibility(_:edges:)photosPickerDisabledCapabilities(_:)