In-app browser
For apps targeting iOS 9 and greater you should be using SFSafariViewController.
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.
platform :ios, '8.0'
pod 'AFWebViewController', '~> 1.0'
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
- [AFAddressBookManager](https://github.com/Fogh/AFAddressBookManager)
- [AFMobilePayRequestHandler](https://github.com/Fogh/AFMobilePayRequestHandler)