WebViewKit adds a WebView to SwiftUI.

What's New


New features

  • WebView now supports providing an empty url and no config block.


Version Swift UI Swift 5.6 MIT License Twitter: @danielsaidi

About WebViewKit

WebViewKit adds a WebView view to SwiftUI, that can be used to embed local and online web sites in your SwiftUI apps. The result can look like this or be presented in sheets, full screen covers etc.:

The WebView view can load any url and be fully configured to fit your needs. For more basic needs, you have a SafariWebView as well.

Supported Platforms

WebViewKit supports iOS 13 and macOS 11.


WebViewKit can be installed with the Swift Package Manager:


Getting started

To get started with WebViewKit, have a look at this getting started guide.


The online documentation contains more information, code examples etc. and makes it easy to overview the various parts of the library.

The online documentation is currently iOS only. To generate documentation for other platforms, open the package in Xcode, select a simulator then run Product/Build Documentation.

Demo Application

This project contains a demo app that lets you explore WebViewKit on iOS and macOS. To run it, just open and run Demo/Demo.xcodeproj.


You can sponsor this project on GitHub Sponsors or get in touch for paid support.


Feel free to reach out if you have questions or if you want to contribute in any way:


WebViewKit is available under the MIT license. See the LICENSE file for more info.


  • Swift Tools 5.6.0
View More Packages from this Author


Last updated: Tue Sep 13 2022 04:54:37 GMT-0500 (GMT-05:00)