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.:
WebView view can load any url and be fully configured to fit your needs. For more basic needs, you have a
SafariWebView as well.
iOS 13 and
WebViewKit can be installed with the Swift Package Manager:
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
This project contains a demo app that lets you explore WebViewKit on iOS and macOS. To run it, just open and run
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.
|Last commit: 6 days ago|
This version adds a new
SafariWebViewis a new iOS view that wraps an
SFSafariViewControllerand can be used to load a custom url.