Contents

SSCenteredRectInRect(_:_:)

Returns a rectangle.

Declaration

func SSCenteredRectInRect(_ innerRect: NSRect, _ outerRect: NSRect) -> NSRect

Parameters

  • innerRect:

    The rectangle to center.

  • outerRect:

    The rectangle to contain innerRect.

Return Value

A rectangle that’s the same size as innerRect, but is centered inside outerRect.

See Also

Utilities