Latest 1.0.3
Homepage https://github.com/byvapps/ByvWebView
License MIT
Platforms ios 8.0
Authors

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.

Latest podspec

{
    "name": "ByvWebView",
    "version": "1.0.3",
    "summary": "UIViewController with UIWebView",
    "description": "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!).",
    "homepage": "https://github.com/byvapps/ByvWebView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Adrian": "[email protected]"
    },
    "source": {
        "git": "https://github.com/byvapps/ByvWebView.git",
        "tag": "1.0.3"
    },
    "social_media_url": "https://twitter.com/byvapps",
    "platforms": {
        "ios": "8.0"
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "source_files": "ByvWebView/Classes/**/*",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This