BonMot icon indicating copy to clipboard operation
BonMot copied to clipboard

StringStyle attributes should contain the transform

Open jvisenti opened this issue 7 years ago • 1 comments

I have a case where I'm creating a StringStyle, retrieving its attributes, and caching those for later manual construction of an NSAttributedString. The StringStyle in question has a custom transform set.

Expected: attributes dictionary contains a value for BonMotTransformationsAttributeName key, which can be used to apply the desired transform to strings manually

Actual: There is no representation of the StringStyle's transform in its attributes dictionary

jvisenti avatar Aug 09 '17 14:08 jvisenti

Also, it looks like transformer is internal on Transform, so they can't be applied manually. This should probably be public

jvisenti avatar Aug 09 '17 14:08 jvisenti