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

Range Photo Picker

Presents a Photos picker that selects a collection of PhotosPickerItem, constrained to a range of selection counts.

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

@State private var selectedPhotos: [PhotosPickerItem] = []

var body: some View {
    PhotosPicker(
        "FooBar",
        selection: $selectedPhotos,
        selectionRange: 2 ... 5
    )
}
iOS 27.3+ iPadOS 27.3+ macOS 27.3+ visionOS 27.3+

Every available iPhone screenshot for Range Photo Picker.

1 views