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
string
String for size calculation
options
String drawing options.
attributes
A 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.
context
The string drawing context to use for the receiver, specifying minimum scale factor and tracking adjustments.