https://github.com/danielsaidi/webviewkit
WebViewKit adds a WebView and SafariWebView to SwiftUI.
https://github.com/danielsaidi/webviewkit
ios macos safari swift swiftui visionos web webview wkwebview
Last synced: about 1 month ago
JSON representation
WebViewKit adds a WebView and SafariWebView to SwiftUI.
- Host: GitHub
- URL: https://github.com/danielsaidi/webviewkit
- Owner: danielsaidi
- License: mit
- Created: 2022-03-31T17:44:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T12:37:30.000Z (7 months ago)
- Last Synced: 2025-03-29T14:06:26.853Z (about 2 months ago)
- Topics: ios, macos, safari, swift, swiftui, visionos, web, webview, wkwebview
- Language: Shell
- Homepage:
- Size: 12.2 MB
- Stars: 126
- Watchers: 7
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![]()
# WebViewKit
WebViewKit is a SwiftUI SDK that adds a `WebView` and a `SafariWebView` that can be used to embed web content and present web sites in your apps:
![]()
The ``WebView`` component supports iOS, macOS, & visionOS, and can be configured to fit your needs, while the iOS exclusive ``SafariWebView`` can be used for more basic needs and a more browser-like experience.
## Installation
WebViewKit can be installed with the Swift Package Manager:
```
https://github.com/danielsaidi/WebViewKit.git
```## Getting started
The library's main view is ``WebView``, which can be used to display any URL:
```swift
import SwiftUI
import WebViewKitstruct MyView {
var body: some View {
WebView(urlString: "https://danielsaidi.com")
}
}
```See the online [getting started guide][Getting-Started] for more information.
## Documentation
The online [documentation][Documentation] has more information, articles, code examples, etc.
## Demo Application
The `Demo` folder has an app that lets you explore the library and try out the views.
## Support my work
You can [sponsor me][Sponsors] on GitHub Sponsors or [reach out][Email] for paid support, to help support my [open-source projects][OpenSource].
Your support makes it possible for me to put more work into these projects and make them the best they can be.
## Contact
Feel free to reach out if you have questions, or want to contribute in any way:
* Website: [danielsaidi.com][Website]
* E-mail: [[email protected]][Email]
* Bluesky: [@[email protected]][Bluesky]
* Mastodon: [@[email protected]][Mastodon]## License
WebViewKit is available under the MIT license. See the [LICENSE][License] file for more info.
[Email]: mailto:[email protected]
[Website]: https://danielsaidi.com
[GitHub]: https://github.com/danielsaidi
[OpenSource]: https://danielsaidi.com/opensource
[Sponsors]: https://github.com/sponsors/danielsaidi[Bluesky]: https://bsky.app/profile/danielsaidi.bsky.social
[Mastodon]: https://mastodon.social/@danielsaidi
[Twitter]: https://twitter.com/danielsaidi[Documentation]: https://danielsaidi.github.io/WebViewKit
[Getting-Started]: https://danielsaidi.github.io/WebViewKit/documentation/webviewkit/getting-started
[License]: https://github.com/danielsaidi/WebViewKit/blob/master/LICENSE