Custom Photo Picker Buttons
Sets the primary and secondary button types of the Photos picker.
Platform Compatibility
Tags
SwiftUI Code
@State private var selectedPhoto: PhotosPickerItem?
var body: some View {
PhotosPicker("FooBar", selection: $selectedPhoto)
.photosPickerButtonType(primary: .choose, secondary: .clear)
}