kaiinui / SmoothWebView

Native-like behavior for WKWebView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmoothWebView

Enable native-like behavior for WKWebView

  • Native-like scroll speed.
  • No long touch menu.
  • Remove capability to select elements.
  • Remove highlights on tap.
  • Remove touch latency.

Usage

1. Call ki_applySmooth on instantiation.

webView.ki_applySmooth()

2. Call ki_applySmoothForCurrentPage on page load.

func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
    webView.ki_applySmoothForCurrentPage()
}

Installation

github "kaiinui/SmoothWebView"

About

Native-like behavior for WKWebView


Languages

Language:Swift 92.7%Language:Objective-C 7.3%