Giter VIP home page Giter VIP logo

carabina / abwebview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asifbilal786/abwebview

0.0 1.0 0.0 26 KB

A utility control which is using fast WKWebView in replacement of UIWebView which is introduced in iOS8. Just set URL to load and it will do the rest. Very easy to implement. This is very useful when loading 'Terms of Services' OR 'Privacy Policy' web pages.

License: MIT License

Ruby 19.54% Swift 80.46%

abwebview's Introduction

ABWebView

A utility control which is using fast WKWebView in replacement of UIWebView which is introduced in iOS8. Just set URL to load and it will do the rest. Very easy to implement. This is very useful when loading 'Terms of Services' OR 'Privacy Policy' web pages.

Demo

Alt text

Requirements

  • iOS 8 and above.
  • Xcode 8 and above

Adding ABWebViewController to your project

METHOD 1:

  1. Add a pod entry for ABWebView to your Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'ABWebView', '~> 0.1'
  1. Install the pod(s) by running pod install.

MEHTOD 2: (Source files)

Alternatively, you can directly add all files under the folder Core to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your Xcode project, then drag and drop source directory onto your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.

Usage

Create instance of ABWebViewConroller and set URLToLoad.

let webViewController = ABWebViewController()

// Configure WebViewController
webViewController.URLToLoad = "https://apple.com"

// Customize UI of progressbar
webViewController.progressTintColor = UIColor.red
webViewController.trackTintColor = UIColor.brown


navigationController?.pushViewController(webViewController, animated: true)

See example projects for detail.

License

This code is distributed under the terms and conditions of the MIT license.

abwebview's People

Contributors

asifbilal786 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.