Orderella / PopupDialog

A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.
http://www.mwfire.de
Other
3.94k stars 520 forks source link

Changing DefaultButton appearance while typing #372

Open Maryom opened 3 years ago

Maryom commented 3 years ago

Hi,

Thanks for your useful repo.

I have a custom PopupDialog, I changed the appearance of the DefaultButton using the following lines of code:

let db = DefaultButton.appearance()
     db.titleFont   = .optionsFont
     db.titleColor  = UIColor.optionsColor
     db.buttonColor = UIColor.buttonColor

I need to set different colors appearance when the text field is empty. Then, when user starts typing I need to change the colors.

Could you please guide me how to do it?