Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, adrian@byvapps.com

License

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages