SwiftUI Safari View Sheet
A SwiftUI ViewModifier that simplifies modal sheet presentation of SafariView
.
Usage
contentView.safariViewSheet(
: $isPresented,
isPresented: URL(string: "https://swiftstarterkits.com")!
url)
Features
- Supports light and dark device color schemes by default.
- Supports font scaling via Dynamic Type.
- Supports offline usage in SwiftUI Previews for easy debugging and testing.
Notes
- For more granular control over
SafariViewSheet
presentation, useSafariView
directly.