Coder Social home page Coder Social logo

action121 / pfwebviewcontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from perfectfreeze/pfwebviewcontroller

0.0 1.0 0.0 37.23 MB

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

License: MIT License

HTML 17.85% JavaScript 64.75% Objective-C 14.27% Ruby 3.13%

pfwebviewcontroller's Introduction

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.

pfwebviewcontroller's People

Contributors

cee avatar sergiochan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.