Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T12:37:30.000Z (4 months ago)
- Last Synced: 2025-01-12T23:06:22.203Z (9 days ago)
- Topics: ios, macos, safari, swift, swiftui, visionos, web, webview, wkwebview
- Language: Shell
- Homepage:
- Size: 12.2 MB
- Stars: 117
- Watchers: 8
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## About WebViewKit
WebViewKit is a SwiftUI SDK that adds a `WebView` and a `SafariWebView` to `SwiftUI`, 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.
## 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 if you want to contribute in any way:
* Website: [danielsaidi.com][Website]
* Mastodon: [@[email protected]][Mastodon]
* Twitter: [@danielsaidi][Twitter]
* E-mail: [[email protected]][Email]## 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
[Twitter]: https://twitter.com/danielsaidi
[Mastodon]: https://mastodon.social/@danielsaidi
[OpenSource]: https://danielsaidi.com/opensource
[Sponsors]: https://github.com/sponsors/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