Skip to content

how to use UIAppearance with stylesheets, or otherwise default UI elements to "ios blue"? #312

@sbauch

Description

@sbauch

Maybe an odd ask, but I would really like for a button that is added via rmq.append(UIButton, :action_button) to have the default iOS blue tint color.

I've found some answers on stack that provide the RGB values for that color, but I would think that hooking into UIAppearance would be a more flexible option.

Is this doable with RMQ? I suppose I could create a style that uses tintColor and the RGB of the iOS default, but I think it'd be more helpful to inherit by default the color of the most near UIAppearance (i.e. the superview, the view controller, the application window).

I'm grasping at straws a little bit here, but I found it odd that just adding a UIButton via rmq.append() with no style attributes inserts a button with seemingly clear text.

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