Latest 0.1.0
Homepage https://github.com/PattoMotto/PMWebView
License MIT
Platforms ios 9.0

CI Status
Version
License
Platform

Preview

pmwebview-1

Example

extension ViewController {
    private func presentPMWevViewAsChild() {
        let vc = PMWebViewBuilder.build(
            url: url,
            output: self
        )
        pmWebViewInput = vc
        addChildViewController(vc)
        vc.didMove(toParentViewController: self)
    }

    private func presentPMWevViewAsModal() {
        let vc = PMWebViewBuilder.build(
            url: url,
            output: self
        )
        pmWebViewInput = vc
        present(vc, animated: true)
    }
}

extension ViewController: PMWebViewOutput {
    func webViewWillAppear() {
        print("webViewWillAppear")
    }

    func webViewWillDisappear() {
        print("webViewWillDisappear")
    }
}

More details in Example project

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

Requirements

Installation

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

pod 'PMWebView'

Author

PattoMotto

License

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

Latest podspec

{
    "name": "PMWebView",
    "version": "0.1.0",
    "summary": "Full screen web view with touch through",
    "description": "Full screen web view that popup only when DOM generated, does not block user due to while loading if user touch or got http error or timeout this web view will disappear",
    "homepage": "https://github.com/PattoMotto/PMWebView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": "PattoMotto",
    "source": {
        "git": "https://github.com/PattoMotto/PMWebView.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/PattoMotto",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source_files": "PMWebView/Classes/**/*"
}

Pin It on Pinterest

Share This