SwiftUI Safari View
A SwiftUI View that wraps SFSafariViewController as a
UIViewControllerRepresentable.
Usage
SafariView(
url: URL(string: "https://swiftstarterkits.com")!
)
.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
SafariViewSheetViewModifier.