Structure

UIFloatRange

The range of motion for attached objects.

Declaration

struct UIFloatRange

Topics

Creating a Float Range

init(minimum: CGFloat, maximum: CGFloat)

Returns a new float range structure from the given components.

static let infinite: UIFloatRange

A range whose range is minus infinity to infinity.

static let zero: UIFloatRange

A range whose minimum and maximum are both 0.0.

Getting the Range Values

var maximum: CGFloat

The maximum range of motion for sliding and pin attachments. For sliding attachments, it represents the number of points to move along the axis of translation in the positive direction. For pin attachments, it represents the number of radians to rotate in the clockwise direction. This value must be greater than or equal to 0.

var minimum: CGFloat

The minimum range of motion for sliding and pin attachments. For sliding attachments, it represents the number of points to move along the axis of translation in the negative direction. For pin attachments, it represents the number of radians to rotate in the counter-clockwise direction. This value must be less than or equal to 0.

Testing the Range Values

var isInfinite: Bool

Returns a Boolean indicating whether the specified float range is infinitely large.

func UIFloatRangeIsEqualToRange(UIFloatRange, UIFloatRange) -> Bool

Returns a Boolean indicating whether two float ranges are equivalent.

Deprecated
static func == (UIFloatRange, UIFloatRange) -> Bool

Returns a Boolean indicating whether two float ranges are equivalent.

Instance Methods

Relationships