Skip to content

albertgh/ACWKWebVC

Repository files navigation

ACWKWebVC

Simple WKWebViewController

Installing

Xcode > File > Swift Packages > Add Package Dependency

https://github.com/albertgh/ACWKWebVC.git

Usage

import ACWKWebVC
let webVC: YourCustomizedWebVC = YourCustomizedWebVC(url: url)
webVC.title = "navigation title"
webVC.progressY = 56.0
webVC.moreButtonEven = {
}
webVC.showBottomBar = true

let webNC = UINavigationController(rootViewController: webVC)
webNC.modalPresentationStyle = .pageSheet
webNC.modalTransitionStyle = .coverVertical
webNC.isModalInPresentation = isModalInPresentation
present(webNC, animated: true) { }

Example Project

There's an example project available to try. Simply open the ACWKWebVCExample-iOS.xcodeproj from within the Example directory.

Requirements

  • iOS 9.0+
  • Swift 5.0 or higher

License

MIT

About

Simple WKWebViewController

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages