簡介
在網上找了一圈,都沒有找到合適自己用的swift hud,所以決定自己去寫一個。于是花了半天的時間終于寫完的。
源碼地址: https://github.com/JQHee/JQProgressHUD
語言: swift 3
效果:
result.gif
CocoaPods
Add a pod entry for JQProgressHUD to your Podfile.
pod 'JQProgressHUD'
Second, install JQProgressHUD into your project:
pod install
使用
JQProgressHUDTool.jq_showToastHUD( msg: "this is toast")
或者
JQProgressHUDTool.jq_showNormalHUD(msg: "loading...")
JQProgressHUDTool.jq_hideHUD()