Initializer

init(top:leading:bottom:trailing:)

No overview available.

Declaration

init(top: CGFloat, leading: CGFloat, bottom: CGFloat, trailing: CGFloat)

Parameters

top

The inset on the top of an object.

leading

The inset on the leading edge of an object. In a left-to-right system, the left edge is the leading edge. In a right-to-left system, the right edge is the leading edge.

bottom

The inset on the bottom of an object.

trailing

The inset on the trailing edge of an object. In a left-to-right system, the right edge is the trailing edge. In a right-to-left system, the left edge is the trailing edge.

Return Value

An initialized inset structure.

See Also

Creating Directional Edge Insets

init()

Initializes the edge inset struct to default values.