StringLayoutAnchor
public struct StringLayoutAnchor : RectBasedConstraint
Undocumented
-
Designed initializer
Declaration
Swift
public init(string: String?, options: String.DrawingOptions = .usesLineFragmentOrigin, attributes: [NSAttributedString.Key : Any]? = nil, context: NSStringDrawingContext? = nil)Parameters
stringString for size calculation
optionsString drawing options.
attributesA dictionary of text attributes to be applied to the string. These are the same attributes that can be applied to an NSAttributedString object, but in the case of NSString objects, the attributes apply to the entire string, rather than ranges within the string.
contextThe string drawing context to use for the receiver, specifying minimum scale factor and tracking adjustments.
StringLayoutAnchor Structure Reference