john doe john doe -4 years ago 97
iOS Question

MBProgressHUD Completed View with Checkmark

I am using MBProgressHUD and I want to change the appearance to the one which has checkmark and the completed text. Any ideas how I can do that?

enter image description here

Answer Source

I think there is no built in appearance like the one on the screenshot. you have to provide your own checkmark image. Then you can change the appearance like this:

let hud = MBProgressHUD.showHUDAddedTo(view, animated: true)
hud.mode = .CustomView
hud.customView = UIImageView(image: UIImage(named: "checkmark")) // according to the documentation a good image size is something like 37x37px
hud.label.text = "Completed"

checkmark

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download