Function

CTLineGetBoundsWithOptions(_:_:)

Calculates the bounds for a line.

Declaration

func CTLineGetBoundsWithOptions(_ line: CTLine, _ options: CTLineBoundsOptions) -> CGRect

Parameters

line

The line for which you calculate the bounds.

options

Desired options or 0 if none.

Return Value

The bounds of the line as specified by the type and options, such that the coordinate origin is coincident with the line origin and the rect origin is at the bottom left. If the line is invalid, this function will return null.

See Also