ALWebViewController
Simple and Ready to Use WebViewController
Install / Use
/learn @applogistdev/ALWebViewControllerREADME
ALWebViewController 🌐
Installation
CocoaPods
ALWebViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ALWebViewController'
Swift Package Manager
From Xcode 11, you can use Swift Package Manager to add ALWebViewController to your project.
- Select File > Swift Packages > Add Package Dependency. Enter https://github.com/applogistdev/ALWebViewController.git in the "Choose Package Repository" dialog.
- In the next page, specify the version resolving rule as "Up to Next Major" with "0.2.1" as its earliest version.
- After Xcode checking out the source and resolving the version, you can choose the "ALWebViewController" library and add it to your app target.
Usage
import ALWebViewController
// URL Example
let url = URL(string: "https://www.google.com")!
let urlType = ALWebContentType.url(url: url)
let webVC = ALWebViewController(content: type)
navigationController?.pushViewController(webVC, animated: true)
// Html String Example
var html = "<html><body><h1> Title </h1></body></html>"
let htmlType = ALWebContentType.html(html: html
let webVC = ALWebViewController(content: htmlType)
navigationController?.pushViewController(webVC, animated: true)
// ALWebViewDelegate
extension ViewController: ALWebViewDelegate {
func webView(didStartLoading webVC: ALWebViewController) {
debugPrint("Start Loading")
}
func webView(didFinishLoading webVC: ALWebViewController) {
debugPrint("Finish Loading")
}
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Author
Soner Güler, sonerguler93@gmail.com Ünal Çelik, unal.celik@applogist.com
License
ALWebViewController is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
