Documentation

SwiftUI Web View Sheet

A SwiftUI ViewModifier that allows modal sheet presentation of a WebView.

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

Usage

contentView
    .webViewSheet(
        isPresented: $isShowingWebview,
        url: URL(string: "https://swiftstarterkits.com"),
        title: "Swift Starter Kits"
    )

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.