Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

danielsaidi/WebViewKit

Repository files navigation

Project Icon

Version Swift 6.0 Swift UI Documentation MIT License Sponsor my work

WebViewKit

WebViewKit is a SwiftUI library that adds a WebView and a SafariWebView that can present web sites in any app:

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.

‼️ Important Information

WWDC 25 introduced a native WebView component for iOS, macOS, and visionOS, as described in this blog post.

With this addition, this package is no longer needed. It will remain a public archive until iOS 27, then be removed.

Installation

WebViewKit can be installed with the Swift Package Manager:

https://github.com/danielsaidi/WebViewKit.git

Support My Work

You can become a sponsor to help me dedicate more time on my various open-source tools. Every contribution, no matter the size, makes a real difference in keeping these tools free and actively developed.

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.

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.

About

A library that adds a WebView and SafariWebView to SwiftUI.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •