Swiftpack.co - Package - albertgh/ACWKWebVC

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

albertgh/ACWKWebVC

Simple WKWebViewController

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

Github

link
Stars: 0
Last commit: 1 week ago