GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - swordray/JXWebViewController: An iOS view controller wrapper for WKWebView

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
JXWebViewController
JXWebViewController
 
 
.gitignore
.gitignore
 
 
.swift-version
.swift-version
 
 
.swiftlint.yml
.swiftlint.yml
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
JXWebViewController.podspec
JXWebViewController.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

JXWebViewController

An iOS view controller wrapper for WKWebView.

CI Status Version License Platform

Since iOS 8, WKWebView is preferred over UIWebView. But unlike UIWebView, WKWebView provide less default behaviors due to the security design. JXWebViewController wrap up a WKWebView and implements a few standard features as iOS Safari does. So web views can be easily used in your apps out-of-the-box. It is also referred to as WebViewController, UIWebViewController or WKWebViewController.

Features

  • Allows back forward navigation gestures.
  • Support HTTP Basic access authentication.
  • Implement JavaScript alert, confirm and prompt.
  • Open native links of mailto, tel, itms-apps and so on.
  • Open and close pages in current view.
  • Reload when web content process is terminated.
  • Perform auto detection of phone numbers.
  • Proxy the page title to the controller title.
  • Add the refresh control.
  • Support Handoff from app to Safari.

Requirements

  • iOS 11.0+
  • Xcode 9.0+
  • Swift 4.0+

Installation

JXWebViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JXWebViewController'

Usage

Quick Start

let url = URL(string: "https://example.com/")!

let webViewController = JXWebViewController()
webViewController.webView.load(URLRequest(url: url))
navigationController?.pushViewController(webViewController, animated: true)

Customization

  • Use webView property to access the WKWebView instance.
  • Use webViewConfiguration property to set up WKWebViewConfiguration before view is loaded.
  • Create a JXWebViewController subclass which implements or overrides WKNavigationDelegate and WKUIDelegate methods.

Credits

Jianqiu Xiao, [email protected]

Sponsors

  • BaiLu ShuYuan

License

JXWebViewController is available under the MIT license. See the LICENSE file for more info.

About

An iOS view controller wrapper for WKWebView

Topics

iosswiftuiwebviewuiwebviewcontrollerwebviewwebviewcontrollerwkwebviewwkwebviewcontroller

Resources

Readme
MIT license
Activity

Stars

28 stars

Watchers

3 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.