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.
WebViewKit supports iOS 13
and macOS 11
.
WebViewKit can be installed with the Swift Package Manager:
https://github.com/danielsaidi/WebViewKit.git
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
.
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.
link |
Stars: 13 |
Last commit: 6 days ago |
This version adds a new SafariWebView
.
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