Skip to content

Changing DefaultButton appearance while typing #372

@Maryom

Description

@Maryom

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions