Latest 0.0.2
Homepage https://github.com/ecpplus/EcpWebView
License MIT
Platforms ios 9.0, requires ARC
Authors

This is only a WKWebView wrapper. NetworkActivityIndicator is automatically turned on during loading and turned off on finish loading.

Installation

You can install via CocoaPods

# required Swift 3.0
pod 'EcpWebView'

Usage

You can simply replace WKWebView to EcpWebView

let webView = EcpWebView()
view.addSubview(webView)

let req = URLRequest(url: URL(string: "https://memo.ecp.plus/")!)
webView.load(req)

WKWebView can’t be used in StoryBoards, so the code following will help you.

webView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
webView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
webView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
webView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true

Latest podspec

{
    "name": "EcpWebView",
    "version": "0.0.2",
    "summary": "WKWebView with NetworkActivityIndicator",
    "description": "WKWebView wrapper. NetworkActivityIndicator animates during loading.",
    "homepage": "https://github.com/ecpplus/EcpWebView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "chu": "[email protected]"
    },
    "social_media_url": "https://ecpplus.net",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/ecpplus/EcpWebView.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.swift"
    ],
    "exclude_files": "Classes/Exclude",
    "requires_arc": true,
    "compiler_flags": "-whole-module-optimization"
}

Pin It on Pinterest

Share This