<NME> README.md
<BEF> # PFWebViewController

[![Version](https://img.shields.io/cocoapods/v/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)
[![License](https://img.shields.io/cocoapods/l/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)
[![Platform](https://img.shields.io/cocoapods/p/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)
[![Downloads](https://img.shields.io/cocoapods/dt/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)

## Features

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

- Easy use and less memory consuming than [RxWebViewController](https://github.com/Roxasora/RxWebViewController).

- Support Safari-like reader mode.

## Installation

### Using Carthage

```
github "PerfectFreeze/PFWebViewController"
```

Run `carthage` to build this framework.

Add `PFWebViewController.framework` to your Xcode project.

### Using CocoaPods

Add `PFWebViewController` to your `Podfile`:

```ruby
pod 'PFWebViewController', '~> 1.1.1'
```

Run `pod install` to install this framework.

### Manually

Drag `Classes` folder to your project.

## Usage 

```objective-c
// 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

- [How to implement Safari-like reader mode in PFWebViewController](http://sergiochan.xyz/2016/10/21/%E5%A6%82%E4%BD%95%E5%9C%A8-WKWebView-%E4%B8%AD%E5%AE%9E%E7%8E%B0-Safari-%E5%8E%9F%E7%94%9F%E7%9A%84%E9%98%85%E8%AF%BB%E6%A8%A1%E5%BC%8F/)

## License

This project is released under the terms and conditions of the [MIT license](https://opensource.org/licenses/MIT). See [LICENSE](LICENSE) for details.

<MSG> Add Screenshots & Update README

<DFF> @@ -13,6 +13,24 @@
 
 - Support Safari-like reader mode.
 
+## Screenshots
+
+### Loading
+
+![Loading](Screenshots/Loading.png)
+
+### Main Screen
+
+![Main Screen](Screenshots/GitHub_1.png)
+
+![Main Screen](Screenshots/GitHub_2.png)
+
+### Reader Mode
+
+![Reader Mode Off](Screenshots/Reader_Mode_1.png)
+
+![Reader Mode On](Screenshots/Reader_Mode_2.png)
+
 ## Installation
 
 ### Using Carthage

{'commit': 'diff --git a/README.md b/README.md\nindex 3243678..f3a18e5 100644\n--- a/README.md\n+++ b/README.md\n@@ -13,6 +13,24 @@\n \n - Support Safari-like reader mode.\n \n+## Screenshots\n+\n+### Loading\n+\n+![Loading](Screenshots/Loading.png)\n+\n+### Main Screen\n+\n+![Main Screen](Screenshots/GitHub_1.png)\n+\n+![Main Screen](Screenshots/GitHub_2.png)\n+\n+### Reader Mode\n+\n+![Reader Mode Off](Screenshots/Reader_Mode_1.png)\n+\n+![Reader Mode On](Screenshots/Reader_Mode_2.png)\n+\n ## Installation\n \n ### Using Carthage\ndiff --git a/Screenshots/GitHub_1.png b/Screenshots/GitHub_1.png\nnew file mode 100644\nindex 0000000..c3d485f\nBinary files /dev/null and b/Screenshots/GitHub_1.png differ\ndiff --git a/Screenshots/GitHub_2.png b/Screenshots/GitHub_2.png\nnew file mode 100644\nindex 0000000..374b8e1\nBinary files /dev/null and b/Screenshots/GitHub_2.png differ\ndiff --git a/Screenshots/Loading.png b/Screenshots/Loading.png\nnew file mode 100644\nindex 0000000..be1ed0c\nBinary files /dev/null and b/Screenshots/Loading.png differ\ndiff --git a/Screenshots/Reader_Mode_1.png b/Screenshots/Reader_Mode_1.png\nnew file mode 100644\nindex 0000000..b280ad9\nBinary files /dev/null and b/Screenshots/Reader_Mode_1.png differ\ndiff --git a/Screenshots/Reader_Mode_2.png b/Screenshots/Reader_Mode_2.png\nnew file mode 100644\nindex 0000000..459e612\nBinary files /dev/null and b/Screenshots/Reader_Mode_2.png differ\n', 'commit_subject': 'Add Screenshots & Update README', 'repo_name': 'PerfectFreeze/PFWebViewController', 'committer': {'name': 'Cee', 'email': '042dc4512fa3d391c5170cf3aa61e6a638f84342@cee.moe', 'time_sec': '1476860118', 'tz_offset': '480', 'date': {'seconds': '1476860118'}}, 'commit_tree': '580f2774a6706f22798f7cbb4ea6d956f4c11114', 'commit_message': 'Add Screenshots & Update README\n', 'language_name': 'HTML', 'license': 'mit', 'hunks': '@@ -13,6 +13,24 @@\n \n - Support Safari-like reader mode.\n \n+## Screenshots\n+\n+### Loading\n+\n+![Loading](Screenshots/Loading.png)\n+\n+### Main Screen\n+\n+![Main Screen](Screenshots/GitHub_1.png)\n+\n+![Main Screen](Screenshots/GitHub_2.png)\n+\n+### Reader Mode\n+\n+![Reader Mode Off](Screenshots/Reader_Mode_1.png)\n+\n+![Reader Mode On](Screenshots/Reader_Mode_2.png)\n+\n ## Installation\n \n ### Using Carthage\n', 'addition_count': 18, 'deletion_count': 0, 'src_file': 'a/README.md', 'tgt_file': 'b/README.md', 'file_extension': '.md', 'before_file': '# PFWebViewController\n\n[![Version](https://img.shields.io/cocoapods/v/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)\n[![License](https://img.shields.io/cocoapods/l/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)\n[![Platform](https://img.shields.io/cocoapods/p/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)\n[![Downloads](https://img.shields.io/cocoapods/dt/PFWebViewController.svg?style=flat)](http://cocoapods.org/pods/PFWebViewController)\n\n## Features\n\n- A light-weight webview controller using WKWebView. Only supports iOS 9 and above.\n\n- Easy use and less memory consuming than [RxWebViewController](https://github.com/Roxasora/RxWebViewController).\n\n- Support Safari-like reader mode.\n\n## Installation\n\n### Using Carthage\n\n```\ngithub "PerfectFreeze/PFWebViewController"\n```\n\nRun `carthage` to build this framework.\n\nAdd `PFWebViewController.framework` to your Xcode project.\n\n### Using CocoaPods\n\nAdd `PFWebViewController` to your `Podfile`:\n\n```ruby\npod \'PFWebViewController\', \'~> 1.1.1\'\n```\n\nRun `pod install` to install this framework.\n\n### Manually\n\nDrag `Classes` folder to your project.\n\n## Usage \n\n```objective-c\n// Init with a string\nPFWebViewController *webVC = [[PFWebViewController alloc] initWithURLString:@"https://github.com"];\n\n// Or with an URL\nNSURL *url = ...;\nPFWebViewController *webVC = [[PFWebViewController alloc] initWithURL:url];\n\n// Optional: Set Progressbar\'s Color, default is black\n[webVC setProgressBarColor:[UIColor redColor]];\n    \n// Present in a single view\n[self presentViewController:webVC animated:YES completion:nil];\n\n// Or push in a navigationController\n[self.navigationController pushViewController:webVC animated:YES];\n```\n## Further Reading\n\n- [How to implement Safari-like reader mode in PFWebViewController](http://sergiochan.xyz/2016/10/21/%E5%A6%82%E4%BD%95%E5%9C%A8-WKWebView-%E4%B8%AD%E5%AE%9E%E7%8E%B0-Safari-%E5%8E%9F%E7%94%9F%E7%9A%84%E9%98%85%E8%AF%BB%E6%A8%A1%E5%BC%8F/)\n\n## License\n\nThis project is released under the terms and conditions of the [MIT license](https://opensource.org/licenses/MIT). See [LICENSE](LICENSE) for details.\n', 'message': 'Add Screenshots & Update README\n', 'author_name': 'Cee', 'lang': 'md'}