Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing DefaultButton appearance while typing #372

Open
Maryom opened this issue Jul 20, 2021 · 0 comments
Open

Changing DefaultButton appearance while typing #372

Maryom opened this issue Jul 20, 2021 · 0 comments

Comments

@Maryom
Copy link

Maryom commented Jul 20, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant