Swift 加载指示器JQProgressHUD

490 阅读1分钟

简介

在网上找了一圈,都没有找到合适自己用的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()