Swiftpack.co - danielsaidi/WebViewKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by danielsaidi.
danielsaidi/WebViewKit 0.2.0
WebViewKit adds a WebView to SwiftUI.
⭐️ 13
🕓 6 days ago
iOS macOS
.package(url: "https://github.com/danielsaidi/WebViewKit.git", from: "0.2.0")


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.


Stars: 13
Last commit: 6 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

3 weeks ago

This version adds a new SafariWebView.

✨ New features

  • SafariWebView is a new iOS view that wraps an SFSafariViewController and can be used to load a custom url.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics