PopupDialog icon indicating copy to clipboard operation
PopupDialog copied to clipboard

Changing DefaultButton appearance while typing

Open Maryom opened this issue 3 years ago • 0 comments

Hi,

Thanks for your useful repo.

  • Xcode version (12.5.1)

  • PopupDialog version (1.1.1)

  • Minimum deployment target (14.0)

  • Language (Swift)

  • In case of Swift - Version (5)

  • Dependency manager (CocoaPods)

  • Version (1.10.0)

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?

Maryom avatar Jul 20 '21 11:07 Maryom