M13ProgressSuite
M13ProgressSuite copied to clipboard
dismissAfterAction not working as expected
I'm using your framework with swift and am trying to make a progress HUD hide automatically after the success action was called.
let hud = M13ProgressHUD(progressView: M13ProgressViewRing())!
hud.progressViewSize = CGSize(width: 60.0, height: 60.0)
hud.animationPoint = CGPoint(x: UIScreen().bounds.width / 2,
y: UIScreen().bounds.height / 2)
if let app = UIApplication.shared.delegate as? AppDelegate, let window = app.window {
window.addSubview(hud)
}
hud.show(true)
hud.dismissAfterAction = true
hud.perform(M13ProgressViewActionSuccess, animated: true)
however, when the action is called and the checkmark icon is animated, the hud's view does not get dismissed.
Hmm, as I can see in sources the dismissAfterAction property is never used. Looks like a bug. You should probably try to call dismiss explicitly.