SwiftUI Safari View
A SwiftUI View that wraps SFSafariViewController
as a
UIViewControllerRepresentable
.
Usage
(
SafariView: URL(string: "https://swiftstarterkits.com")!
url)
.ignoresSafeArea()
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 modal sheet presentation, use the
SafariViewSheet
ViewModifier.