M13ProgressSuite icon indicating copy to clipboard operation
M13ProgressSuite copied to clipboard

dismissAfterAction not working as expected

Open MartinP7r opened this issue 8 years ago • 1 comments

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.

MartinP7r avatar Nov 02 '16 00:11 MartinP7r

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.

algrid avatar Nov 05 '16 23:11 algrid