SHGWebViewController 4.0.1

SHGWebViewController 4.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2018
SPMSupports SPM

Maintained by Gorjan Shukov.




  • By
  • sukov

WebViewController

CI Status
Version
License
Language Swift
Platform

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate WebViewController into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
pod 'SHGWebViewController'
end

To use with Swift 3.x please ensure that you specify version 3.0.0

pod 'SHGWebViewController', '~> 4.0.0'

Then, run the following command:

$ pod install

Usage

Import

import WebViewController

WebViewControllerDelegate

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.