SmartWKWebView
一个 WKWebView 模态窗口,用于显示网页,提供关闭按钮、标题和 URL 标签。用 Swift 编写。
灵感来源于 Instagram 的网页组件。
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
要求
- Xcode 11
- iOS 9.0 或更高版本
- Swift 5.0
安装
SmartWKWebView 可通过 CocoaPods 获得。安装它,只需将以下行添加到您的 Podfile 中
pod 'SmartWKWebView'
用法
简单
import SmartWKWebView
let vc = SmartWKWebViewController()
vc.url = URL(string: "http://www.google.com/en")
present(vc, animated: true)
作者
barisatamer, [email protected]
许可证
SmartWKWebView可在MIT许可证下使用。有关更多信息,请参阅LICENSE文件。