iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

PhotosPicker

Custom Photo Picker Buttons

Sets the primary and secondary button types of the Photos picker.

Explore Custom Photo Picker Buttons on iPhone in portrait, with SwiftUI code and Apple API documentation.

@State private var selectedPhoto: PhotosPickerItem?

var body: some View {
    PhotosPicker("FooBar", selection: $selectedPhoto)
        .photosPickerButtonType(primary: .choose, secondary: .clear)
}
iOS 27.3+ iPadOS 27.3+ macOS 27.3+ visionOS 27.3+

Every available iPhone screenshot for Custom Photo Picker Buttons.

1 views