BAProgressHUD is a progress animation that easy to use displaying on progress.
- iOS 10.3+
pod 'BAProgressHUD'
Import BAProgressHUD
import BAProgressHUD
Show the progress HUD
let baProgressHUD = BAProgressHUD()
baProgressHUD.show(in: self.view)
You can use second style like that
let baProgressHUD = BAProgressHUD(style: .second)
baProgressHUD.show(in: self.view)
Show the progress HUD after delay
baProgressHUD.showAfterDelay(in: self.view, delay: 2)
Show the progress HUD with background view
baProgressHUD.showWithBackgroundView(in: self.view)
Show the progress HUD with background view after delay
baProgressHUD.showAfterDelayWithBackgroundView(in: self.view, delay: 1)
Hide the progress HUD
baProgressHUD.hide()
Hide the progress HUD after delay
baProgressHUD.hideAfterDelay(delay: 3)
BAProgressHUD can be customized with the following methods:
baProgressHUD.setDuration(duration: 0.8)
baProgressHUD.setColor(color: .orange)
baProgressHUD.setLineCap(lineCap: .round)
baProgressHUD.setBackgroundViewColor(color: .red)
baProgressHUD.setBackgroundViewAlpha(alpha: 0.7)