Structure

NSEdgeInsets

A description of the distance between the edges of two rectangles.

Overview

Edge insets describe the distance between the edges of one rectangle to a related rectangle that can be described by measuring a constant but edge-specific distance from each edge.

A common use for this structure is to describe the relationship between a view’s frame and its alignment rectangle.

Topics

Edges

var bottom: CGFloat

The distance from the bottom of the source rectangle to the bottom of the result rectangle.

var left: CGFloat

The distance from the left side of the source rectangle to the left side of the result rectangle.

var right: CGFloat

The distance from the right side of the source rectangle to the right side of the result rectangle.

var top: CGFloat

The distance from the top of the source rectangle to the top of the result rectangle.

See Also

Geometry

struct CGFloat

The basic type for floating-point scalar values in Core Graphics and related frameworks.

typealias NSPoint

A point in a Cartesian coordinate system.

typealias NSSize

A two-dimensional size.

typealias NSRect

A rectangle.

struct AffineTransform

A graphics coordinate transformation.