width(for:edge:)
Returns the width of an edge of a specified layer of the text block.
Declaration
func width(for layer: NSTextBlock.Layer, edge: NSRectEdge) -> CGFloatParameters
- layer:
The layer to examine.
- edge:
The edge of the layer to examine.
Return Value
The width of the edge of layer. This value must be interpreted according to the value type returned by widthValueType(for:edge:).