Skip to content

zhz821/KAWebBrowser

Repository files navigation

KAWebBrowser

KAWebBrowser is a web browser module written in Swift.

Powered by WKWebView on iOS 8.

Support showing page's loading status with an animated progressBar.

Screenshot

Features

  • Animated progress bar
  • Portrait and landscape orientation support
  • Work with existing UINavigationController or present modally
  • Installation with CocoaPods
  • Customizable UI
  • Customizable Toolbar & action buttons

Requirements

  • iOS 8.0+
  • Xcode 7.3+

Usage

Push to the navigation stack:

let browser = KAWebBrowser()
showViewController(browser, sender: nil)

browser.loadURLString("https://github.com")

Present Modally:

let navigationController = KAWebBrowser.navigationControllerWithBrowser()
showViewController(navigationController, sender: nil)

navigationController.webBrowser()?.loadURLString("https://github.com")

Installation

CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Getting Started" for more information.

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

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