Skip to content

bjarkehs/AFWebViewController

 
 

Repository files navigation

AFWebViewController

Pod version Pod platform Build Status

In-app browser

Description

In-app browser for quick implementation in your app. Pretty much inspired by SVWebViewController. Uses WKWebView for a much faster browsing experience.

Requires iOS 8+

Installation with CocoaPods

Install with CocoaPods and import AFWebViewController.h or AFModalWebViewController.h where you want to use it.

Podfile

platform :ios, '8.0'
pod 'AFWebViewController', '~> 1.0'

Usage example

Push AFWebViewController:

AFWebViewController *webViewController = [AFWebViewController webViewControllerWithAddress:@"https://google.com"];
webViewController.toolbarTintColor = [UIColor orangeColor]; // Does not work on iPad
[self.navigationController pushViewController:webViewController animated:YES];

Modal AFWebViewController:

AFModalWebViewController *webViewController = [AFModalWebViewController webViewControllerWithAddress:@"https://google.com"];
webViewController.barsTintColor = [UIColor redColor];
webViewController.toolbarTintColor = [UIColor orangeColor]; // Does not work on iPad
[self presentViewController:webViewController animated:YES completion:NULL];

Other iOS open source projects by me

About

In-app browser that uses WKWebView

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 95.8%
  • Ruby 4.2%