BonMot
BonMot copied to clipboard
StringStyle attributes should contain the transform
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
Also, it looks like transformer
is internal
on Transform
, so they can't be applied manually. This should probably be public