PFWebViewController

by PerfectFreeze

PerfectFreeze / PFWebViewController

A light-weight webview controller using WKWebView. Support Safari-like reader mode.

207 Stars 29 Forks Last release: about 4 years ago (v1.1.1) MIT License 40 Commits 5 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

PFWebViewController

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.

Screenshots

Loading

Loading

Main Screen

Main Screen Main Screen

Reader Mode

Reader Mode Off Reader Mode On

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.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];

Further Reading

License

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.