{"id":19467134,"url":"https://github.com/swordray/jxwebviewcontroller","last_synced_at":"2025-08-22T22:34:50.299Z","repository":{"id":48215955,"uuid":"117973571","full_name":"swordray/JXWebViewController","owner":"swordray","description":"An iOS view controller wrapper for WKWebView","archived":false,"fork":false,"pushed_at":"2022-02-05T08:46:04.000Z","size":35,"stargazers_count":29,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-31T16:16:11.554Z","etag":null,"topics":["ios","swift","uiwebview","uiwebviewcontroller","webview","webviewcontroller","wkwebview","wkwebviewcontroller"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swordray.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-18T11:22:53.000Z","updated_at":"2023-04-21T14:50:51.000Z","dependencies_parsed_at":"2022-08-20T21:20:22.789Z","dependency_job_id":null,"html_url":"https://github.com/swordray/JXWebViewController","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXWebViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXWebViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXWebViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordray%2FJXWebViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swordray","download_url":"https://codeload.github.com/swordray/JXWebViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223997643,"owners_count":17238585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","swift","uiwebview","uiwebviewcontroller","webview","webviewcontroller","wkwebview","wkwebviewcontroller"],"created_at":"2024-11-10T18:33:34.116Z","updated_at":"2024-11-10T18:33:34.720Z","avatar_url":"https://github.com/swordray.png","language":"Swift","readme":"# JXWebViewController\n\nAn iOS view controller wrapper for [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview).\n\n[![CI Status](http://img.shields.io/travis/swordray/JXWebViewController.svg?style=flat)](https://travis-ci.org/swordray/JXWebViewController)\n[![Version](https://img.shields.io/cocoapods/v/JXWebViewController.svg?style=flat)](http://cocoapods.org/pods/JXWebViewController)\n[![License](https://img.shields.io/cocoapods/l/JXWebViewController.svg?style=flat)](http://cocoapods.org/pods/JXWebViewController)\n[![Platform](https://img.shields.io/cocoapods/p/JXWebViewController.svg?style=flat)](http://cocoapods.org/pods/JXWebViewController)\n\nSince 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.\n\n## Features\n\n* Allows back forward navigation gestures.\n* Support HTTP Basic access authentication.\n* Implement JavaScript `alert`, `confirm` and `prompt`.\n* Open native links of `mailto`, `tel`, `itms-apps` and so on.\n* Open and close pages in current view.\n* Reload when web content process is terminated.\n* Perform auto detection of phone numbers.\n* Proxy the page title to the controller title.\n* Add the refresh control.\n* Support Handoff from app to Safari.\n\n## Requirements\n\n* iOS 11.0+\n* Xcode 9.0+\n* Swift 4.0+\n\n## Installation\n\nJXWebViewController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'JXWebViewController'\n```\n\n## Usage\n\n### Quick Start\n\n```swift\nlet url = URL(string: \"https://example.com/\")!\n\nlet webViewController = JXWebViewController()\nwebViewController.webView.load(URLRequest(url: url))\nnavigationController?.pushViewController(webViewController, animated: true)\n```\n\n### Customization\n\n* Use `webView` property to access the [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview) instance.\n* Use `webViewConfiguration` property to set up [WKWebViewConfiguration](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration) before view is loaded.\n* Create a `JXWebViewController` subclass which implements or overrides [WKNavigationDelegate](https://developer.apple.com/documentation/webkit/wknavigationdelegate) and [WKUIDelegate](https://developer.apple.com/documentation/webkit/wkuidelegate) methods.\n\n## Credits\n\nJianqiu Xiao, swordray@gmail.com\n\n## Sponsors\n\n* [BaiLu ShuYuan](https://bailushuyuan.org)\n\n## License\n\nJXWebViewController is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswordray%2Fjxwebviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswordray%2Fjxwebviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswordray%2Fjxwebviewcontroller/lists"}