Latest 1.1.1
Homepage https://github.com/PerfectFreeze/PFWebViewController
License MIT
Platforms ios 9.0, requires ARC
Authors

Version
License
Platform
Downloads

Features

  • A light-weight webview controller using WKWebView. Only supports iOS 9 and above.

  • Easy use and less memory consuming than RxWebViewController.

  • Support Safari-like reader mode.

Installation

Using Carthage

Add PFWebViewController to your Cartfile:

github "PerfectFreeze/PFWebViewController"

Run carthage to build this framework.

Add PFWebViewController.framework to your Xcode project.

Using CocoaPods

Add PFWebViewController to your Podfile:

pod 'PFWebViewController', '~> 1.1'

Run pod install to install this framework.

Manually

Drag Classes folder to your project.

Usage

// Init with a string
PFWebViewController *webVC = [[PFWebViewController alloc] initWithURLString:@"https://github.com"];

// Or with an URL
NSURL *url = ...;
PFWebViewController *webVC = [[PFWebViewController alloc] initWithURL:url];

// Optional: Set Progressbar's Color, default is black
[webVC setProgressBarColor:[UIColor redColor]];

// Present in a single view
[self presentViewController:webVC animated:YES completion:nil];

// Or push in a navigationController
[self.navigationController pushViewController:webVC animated:YES];

License

This project is released under the terms and conditions of the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "PFWebViewController",
    "version": "1.1.1",
    "summary": "A light-weight webview controller using WKWebView. Support Safari-like reader mode.",
    "description": "A light-weight webview controller using WKWebView. It contains a progress bar and can estimate loading time.nnSupport Safari-like reader mode. nnEasy use and less memory consuming than [RxWebViewController](https://github.com/Roxasora/RxWebViewController).",
    "homepage": "https://github.com/PerfectFreeze/PFWebViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Cee": "[email protected]"
    },
    "social_media_url": "https://twitter.com/ceecirno",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/PerfectFreeze/PFWebViewController.git",
        "tag": "v1.1.1"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "resources": "Classes/*.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This