JimChen / WebkitViewController

WebkitViewController is a simple WKWebView-based WebViewController with Zen mind.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebkitViewController

[![CI Status](http://img.shields.io/travis/Masahiro Watanabe/WebkitViewController.svg?style=flat)](https://travis-ci.org/Masahiro Watanabe/WebkitViewController) Version License Platform

WebkitViewController is a simple WKWebView-based WebViewController written purely in Swift.

  • Basic navigation functions such as Next, Back, Reload, Action.
  • Reacts to any orientation regardless of device type.

It tries to remain as minimum as what an in-app webView with basic function would be.

Image

  • Toolbar with Next, Back, Reload, Action buttons/
  • Compatible with iPhone and iPad.
  • Responds to rotation.

Example

let URL = NSURL(string: "http://www.apple.com")
let webViewController = WebkitViewController(withURL: URL, withCachePolicy: nil, withTimeoutInterval: nil)
self.navigationController?.pushViewController(webViewController, animated: true)

Requirements

  • Swift 3.0 or later
  • iOS 8.0 and later
  • iPhone or iPad

Settings

  • Disable NSAppTransportSecurity for unlimited browsing.

Installation

pod "WebkitViewController"
Working on it.

Author

Masahiro Watanabe, m@nsocean.org

License

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

About

WebkitViewController is a simple WKWebView-based WebViewController with Zen mind.

License:MIT License


Languages

Language:Swift 90.6%Language:Ruby 9.4%