Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
IpadModalSwiftUISheet.xcodeproj
IpadModalSwiftUISheet
README.md

README.md

SwiftUI (fullscreen) modal on iPad

SwiftUI .sheet() View Modifier

Most online resources available will use this approach. It implements SwiftUI's sheet() view modifier documented here: https://developer.apple.com/documentation/swiftui/anyview/3345075-sheet

What is usually failed to mention is that this presentation shows full screen on phones only. On iPad, as the name implies, the presentation displays a "sheet" which is not fullscreen.

Result

SwiftUI Sheet

PROS

  • Full SwiftUI

CONS

  • Not fullscreen on iPad
You can’t perform that action at this time.