WebViewKit

1.0.0

WebViewKit adds a WebView and SafariWebView to SwiftUI.
danielsaidi/WebViewKit

What's New

2025-04-03T13:30:52Z

This version bump is just an indication that WebViewKit is production ready and will honor semantic versioning from now on.

Project Icon

Version Swift 6.0 Swift UI Documentation MIT License

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:

import SwiftUI
import WebViewKit

struct MyView {

    var body: some View {
        WebView(urlString: "https://danielsaidi.com")
    }
}

See the online getting started guide for more information.

Documentation

The online 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 on GitHub Sponsors or reach out for paid support, to help support my open-source projects.

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:

License

WebViewKit is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 6.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue May 13 2025 01:16:44 GMT-0900 (Hawaii-Aleutian Daylight Time)