wkc

WKCookieWebView

WKWebView with cookie sharing support

Showing:

Popularity

Downloads/wk

0

GitHub Stars

178

Maintenance

Last Commit

1yr ago

Contributors

4

Package

Dependencies

0

License

MIT

Categories

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), kofktu@gmail.com

License

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100