- WKWebView with cookie sharing support
WKCookieWebView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'WKCookieWebView', '~> 2.0'For iOS 8+ projects with Carthage
github "Kofktu/WKCookieWebView"
public var onUpdateCookieStorage: ((WKCookieWebView) -> Void)?let webView = WKCookieWebView(frame: frame, configurationBlock: { (configuration) in
// customize configuration
})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)?)Taeun Kim (kofktu), kofktu@gmail.com
WKCookieWebView is available under the MIT license. See the LICENSE file for more info.