Initializer

init(lowerLimit:upperLimit:)

Initializes a new range object.

Declaration

init(lowerLimit lower: CGFloat, upperLimit upper: CGFloat)

Parameters

lower

The minimum value for the range.

upper

The maximum value for the range.

Return Value

A newly initialized range object.

See Also

Creating a Range Object

init(value: CGFloat, variance: CGFloat)

Creates and initializes a new range object using a value and a maximum distance from that value.

class func withNoLimits() -> Self

Creates and initializes a new range object that encompasses all possible values.

init(lowerLimit: CGFloat)

Creates and initializes a new range object that specifies only a minimum value.

init(upperLimit: CGFloat)

Creates and initializes a new range object that specifies only a maximum value.

init(constantValue: CGFloat)

Creates and initializes a new range object that specifies a constant value.