Skip to content

Allow users to define valid UserRuntimeAttributes #37

@SD10

Description

@SD10

At IBAnimatable we have a ton of UIKit subclasses with @IBInspectable properties. Some of these are String's and can be very error prone to work with.

Example:
The border property accepts a String of either: solid or dash

If the user writes something like dotted, we should show an error

I think this is possible but the user has to tell us:
a) All valid keys
b) All classes/subclasses this property is used on

Probably in a .yml file?

That may seem like a lot of work but if IBAnimatable were to publish this .yml file on their docs, it could be reusable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions