String

public extension String

Additional constraints

  • Convenience getter for string layout constraint.

    Declaration

    Swift

    @available(OSX 10.11, iOS 10.0, *)
    func layoutConstraint(with options: String.DrawingOptions = .usesLineFragmentOrigin, attributes: [NSAttributedString.Key : Any]? = nil, context: NSStringDrawingContext? = nil) -> StringLayoutAnchor

    Parameters

    attributes

    String attributes

    context

    Drawing context

    Return Value

    String-based constraint