Contents

setWidth(_:type:for:edge:)

Sets the width of a specified edge of a specified layer of the text block.

Declaration

func setWidth(_ val: CGFloat, type: NSTextBlock.ValueType, for layer: NSTextBlock.Layer, edge: NSRectEdge)

Parameters

  • val:

    The new value for the specified edge width.

  • type:

    The type of value being provided. This controls how val is interpreted.

  • layer:

    The layer of the text block to modify.

  • edge:

    The edge of the layer to modify.

See Also

Getting and setting margins, borders, and padding