Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sukov/webviewcontroller
Customizable In-app web browser
https://github.com/sukov/webviewcontroller
cocoapods ios-library swift uiwebview webview webviewcontroller wkwebview xcode
Last synced: 5 days ago
JSON representation
Customizable In-app web browser
- Host: GitHub
- URL: https://github.com/sukov/webviewcontroller
- Owner: sukov
- License: mit
- Created: 2017-11-25T17:11:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T22:08:52.000Z (almost 7 years ago)
- Last Synced: 2024-12-10T05:02:15.521Z (about 1 month ago)
- Topics: cocoapods, ios-library, swift, uiwebview, webview, webviewcontroller, wkwebview, xcode
- Language: Swift
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebViewController
[![CI Status](http://img.shields.io/travis/sukov/WebViewController.svg?style=flat)](https://travis-ci.org/sukov/SHGWebViewController)
[![Version](https://img.shields.io/cocoapods/v/SHGWebViewController.svg?style=flat)](http://cocoapods.org/pods/SHGWebViewController)
[![License](https://img.shields.io/cocoapods/l/SHGWebViewController.svg?style=flat)](http://cocoapods.org/pods/SHGWebViewController)
[![Language Swift](https://img.shields.io/badge/Language-Swift%204.0-orange.svg?style=flat)](https://swift.org)
[![Platform](https://img.shields.io/cocoapods/p/SHGWebViewController.svg?style=flat)](http://cocoapods.org/pods/SHGWebViewController)![WebViewController](https://i.imgur.com/3fXIHPnl.png "WebViewController") ![WebViewController](https://i.imgur.com/7cgbzckl.png "WebViewController")
## Installation
### CocoaPods
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ gem install cocoapods
```To integrate WebViewController into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!target '' do
pod 'SHGWebViewController'
end
```#### To use with Swift 3.x please ensure that you specify version 3.0.0
```ruby
pod 'SHGWebViewController', '~> 4.0.0'
```Then, run the following command:
```bash
$ pod install
```## Usage
### Import
```swift
import WebViewController
```### WebViewControllerDelegate
```swift
func webViewController(_ webViewController: WebViewController, setupAppearanceForMain view: UIView)
func webViewControllerDidStartLoad(_ webViewController: WebViewController)
func webViewControllerDidFinishLoad(_ webViewController: WebViewController)
// default color .gray
func webViewController(_ webViewController: WebViewController, disabledTintColorFor button: UIButton) -> UIColor
// default color .blue
func webViewController(_ webViewController: WebViewController, enabledTintColorFor button: UIButton) -> UIColor
```## Author
sukov, [email protected]
## License
SHGWebViewController is available under the MIT license. See the LICENSE file for more info.