Instance Method

valueType(for:)

Returns the value type of the specified text block dimension.

Declaration

func valueType(for dimension: NSTextBlock.Dimension) -> NSTextBlock.ValueType

Return Value

The value type for the specified text block dimension. This result determines how the value for the dimension should be interpreted.

See Also

Working with dimensions of content

func value(for: NSTextBlock.Dimension)

Returns the value of the specified text block dimension.

var contentWidth: CGFloat

The width of the text block.

var contentWidthValueType: NSTextBlock.ValueType

The type of value stored for the text block width.