ByvWebView 1.0.3

ByvWebView 1.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Adrian Apodaca, Koldo Ruiz.



ByvWebView

CI Status
Version
License
Platform

ByvWebViewController is an UIViewController with an UIWebView.

This view controller must be presented in an UINavigationViewController. If the webview should load any link with the same host it create another ByvWebViewController with this request URL to generate an "UINavigationViewController history". If the link is external it load with UIApplication.shared.openURL(request.url!).

By default the UINavigationItme.title is set with document.title at webViewDidFinishLoad. If you want to put one manually you can set displayTitle.

Usage

##Import

import ByvWebView

##Use

let vc = ByvWebViewController()
vc.urlStr = "htttp://www.myurl.com"
vc.displayTitle = "About"

let nav = UINavigationController(rootViewController: vc)

self.present(nav, animated: true, completion: nil)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

ByvWebView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ByvWebView"

Author

Adrian, [email protected]

License

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