WKCookieWebView Save

WKWebView with cookie sharing support

Project README

WKCookieWebView

  • WKWebView with cookie sharing support

Requirements

  • iOS 8.0+
  • XCode 9.0+
  • Swift 5
  • Swift 4 (1.1.3)
  • Swift 3 (0.0.3)

Installation

CocoaPods

WKCookieWebView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'WKCookieWebView', '~> 2.0'

Carthage

For iOS 8+ projects with Carthage

github "Kofktu/WKCookieWebView"

Usage

When HTTPCookieStorage is updated

public var onUpdateCookieStorage: ((WKCookieWebView) -> Void)?

If you need to set WKWebViewConfiguration

let webView = WKCookieWebView(frame: frame, configurationBlock: { (configuration) in
    // customize configuration
})

Preloader

After running the app, before the first webview was loaded,
Cookies may not be set properly,
In that case, use the loader in advance to synchronize.

WKCookieWebView.preloadWithDomainForCookieSync(urlString: String, completion: (() -> Void)?)

Authors

Taeun Kim (kofktu), [email protected]

License

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

Open Source Agenda is not affiliated with "WKCookieWebView" Project. README Source: Kofktu/WKCookieWebView
Stars
194
Open Issues
7
Last Commit
9 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating