DEV Community

Ilya Minichev
Ilya Minichev

Posted on

WKWebView persistent cookies open source solution and other useful things for WKWebView

iOS WKWebView webview App Template with fully working persistent cookies functionality (httpcookie, web cookie, browser cookie), custom status bar background color, option for white/black status bar text color, option to disable pinch to zoom and double tap to zoom in webview

You have probably noticed that by default iOS WKWebView resets all cookies if you swipe app off memory or every time app is reloaded and new app session started

This WKWebView app template has a solution and a fix to preserve and save cookies to provide expected functionality from web apps

README.md also includes instruction how hide visibility of scroll bar and enable iOS smooth scrolling (you do it in CSS code of your web content, not in the Swift part of the iOS app)

GitHub public repository ilyaminichev/iOSWKWebViewAppTemplatePersistentCookiesWorkLikeACharm

Top comments (0)