An object that manages metrics used when drawing attributed strings.
- iOS 6.0+
- macOS 10.11+
- tvOS 9.0+
- watchOS 2.0+
Prior to drawing, you can create an instance of this class and use it to specify the minimum scale factor and tracking adjustments for a string. After drawing, you can retrieve the actual values that were used during drawing.
To use this class, allocate and initialize a new instance, set the minimum values, and pass your object to one of the corresponding
NSAttributed methods that take the context object as a parameter. Upon completion of drawing, you can use the actual drawing values to make adjustments or record where the string was actually drawn.