jobandtalent / AnimatedTextInput

Animated UITextField and UITextView replacement for iOS
MIT License
760 stars 128 forks source link

Text attributes bug / question #84

Open AlexisQapa opened 6 years ago

AlexisQapa commented 6 years ago

Hi,

Any reason you are using [String:Any] instead of [NSAttributedStringKey:Any] in the style struct ?

This is not really convenient for the user as you have to cast styles to String dict and on your side you do the opposite operation. As this dict is only intended to be used with NSAttributedStringKey you should keep using only NSAttributedStringKey.