One Logo Pool Ball
SwiftUI · IOS API REFERENCE

PresentationAdaptation

struct · iOS 16.4+ · SDK 27.1

struct PresentationAdaptation

Strategies for adapting a presentation to a different size class. Use values of this type with the ``View/presentationCompactAdaptation(_:)`` and ``View/presentationCompactAdaptation(horizontal:vertical:)`` modifiers.

Members (5)

get · iOS 16.4+

fullScreenCover

TypeScript
static get fullScreenCover(): PresentationAdaptation
Swift declaration
static var fullScreenCover: PresentationAdaptation { get }

Prefer a full-screen-cover appearance when adapting for size classes.

get · iOS 16.4+

none

TypeScript
static get none(): PresentationAdaptation
Swift declaration
static var none: PresentationAdaptation { get }

Don't adapt for the size class, if possible.

get · iOS 16.4+

sheet

TypeScript
static get sheet(): PresentationAdaptation
Swift declaration
static var sheet: PresentationAdaptation { get }

Prefer a sheet appearance when adapting for size classes.

get · iOS 16.4+

popover

TypeScript
static get popover(): PresentationAdaptation
Swift declaration
static var popover: PresentationAdaptation { get }

Prefer a popover appearance when adapting for size classes.

get · iOS 16.4+

automatic

TypeScript
static get automatic(): PresentationAdaptation
Swift declaration
static var automatic: PresentationAdaptation { get }

Use the default presentation adaptation.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →