Documentation

SwiftUI Safari View

A SwiftUI View that wraps SFSafariViewController as a UIViewControllerRepresentable.

SafariView with a light color scheme. A SwiftUI Starter Kit Component.
SafariView with a light color scheme.
SafariView with a dark color scheme. A SwiftUI Starter Kit Component.
SafariView with a dark color scheme.

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