pmusolino / PMAlertController

PMAlertController is a great and customizable alert that can substitute UIAlertController
MIT License
2.52k stars 187 forks source link

Configuration Options? #47

Closed alexjordaan closed 7 years ago

alexjordaan commented 7 years ago

Hi! How do we change the font face and colors for the default and cancel styles?

pmusolino commented 7 years ago

Hi @alexjordaan!

You can customize the alert action like a normal UIButton, in fact PMAlertAction is a subclass of UIButton.

Example:

let action = PMAlertAction(title: "Allow", style: .default, action: { () in
            print("Allow")
        })

action.setTitleColor(UIColor.green, for: .normal)

Thanks -Paolo