WebkitViewController 0.1.11

WebkitViewController 0.1.11

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2016
SPMSupports SPM

Maintained by Masahiro Watanabe.



  • By
  • Masahiro Watanabe

WebkitViewController

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 2.2
  • iOS 8.0 and later
  • iPhone or iPad

Settings

  • Disable NSAppTransportSecurity for unlimited browsing.

Installation

pod "WebkitViewController"
  • Carthage
Working on it.

Author

Masahiro Watanabe, [email protected]

License

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