Simple WKWebViewController
Xcode > File > Swift Packages > Add Package Dependency
https://github.com/albertgh/ACWKWebVC.git
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) { }
There's an example project available to try. Simply open the ACWKWebVCExample-iOS.xcodeproj
from within the Example
directory.
- iOS 9.0+
- Swift 5.0 or higher