PresentationAdaptation

Strategies for adapting a presentation to a different size class.

StructureiOS 16.4+macOS 13.3+tvOS 16.4+watchOS 9.4+PresentationAdaptation in SwiftUI

Declaration

React
type PresentationAdaptation =
  | 'automatic'
  | 'fullScreenCover'
  | 'none'
  | 'popover'
  | 'sheet';
Swift
struct PresentationAdaptation

Pass a literal, or build one with SwiftUI.PresentationAdaptation from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Presentation.