Closed amaurydavid closed 6 years ago
I'm guessing, since you closed this, that you figured it out? What was it? Feel free to open a new issue if you have any more questions :)
I just hoped noone will notice it :p Its just the kind of issue you resolve right after posting it. In my case, the behavior wasn't the one I expected because label's text was overriden programmatically by exactly the same text as in the storyboard ... 🤦♂️ Now I still have hard time determining how to use textColors outside of StringStyles, but it's another topic.
Classic self-sabotage bug 😜
What do you mean about using textColors outside of StringStyles? Anything I can help with?
I'm trying to use BonMot with existing storyboards but I'm struggling to apply text styles correctly.
Until now, labels in my storyboards were styled without BonMot, i.e by setting some plain text in the storyboard, and selecting the correct font family and font size for every
UILabel
(andUITextField
,UITextView
,UIButton
). Now that I've created someStringStyles
and registered them, I'm setting thebonMotStyleName
in the attributes's inspector, but the text isn't still styled correctly. What I can do though is to set the text programmatically using thestyledText
property, but I want to keep those strings in storyboard.Is there something I'm missing? If not, maybe making the
styledText
property an IBInspectable would allow the behavior I need?