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.
215elements
PhotosPicker
Disable Automatic Photos Picker Dismissal
Prevents the Photos picker from dismissing automatically. Without this modifier, the Photos picker would automatically dismiss when an image is tapped.
Explore Disable Automatic Photos Picker Dismissal on iPhone in portrait, with SwiftUI code and Apple API documentation.
SwiftUI code
@State private var selectedPhoto: PhotosPickerItem?
var body: some View {
PhotosPicker("FooBar", selection: $selectedPhoto)
.photosPickerAutomaticDismissDisabled()
}Compatibility
iOS 27.3+ iPadOS 27.3+ macOS 27.3+ visionOS 27.3+
Tags
Found an issue or have a suggestion?
All variants
Every available iPhone screenshot for Disable Automatic Photos Picker Dismissal.