Skip to content

Conversation

@maxcampolo
Copy link

I thought #20 was a good idea so I made two IBDesignable classes, IonImageView and IonButton. These classes can be used in storyboard to set images with IonIcons in interface builder.

Use by dragging a UIButton or UIImageView into IB as Set its class to IonButton or IonImageView respectively. This adds an Ion Icon Image inspectable property to interface builder as well as a Ion Icon Background Image property in the case of IonButton. This field takes a hex string, for example f450.

The classes are written in Swift which means the pod has to be used as a framework. If that's an issue they can be rewritten in Objective-C.

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

Successfully merging this pull request may close these issues.

1 participant