InstantiationErrorCode
public enum InstantiationErrorCode : UInt32, CaseIterable, Codable
extension Easing.InstantiationErrorCode : Error
Describes a reason for failing to create an Easing.
-
Number of sampled data points in the list that defines an easing function is too small (i.e. less than 2).
Declaration
Swift
case sampledDataPointCountTooSmall = 1 -
Invalid first value of X in the list of sampled data points that define an easing function. First value of X must be 0.
Declaration
Swift
case sampledDataPointsFirstXValueInvalid -
Invalid last value of X in the list of sampled data points that define an easing function. Last value of X must be 1.
Declaration
Swift
case sampledDataPointsLastXValueInvalid -
Sampled data point X values that define an easing function are out of range [0, 1].
Declaration
Swift
case sampledDataXValueOutOfRange -
Sampled data point X values in the list that defines an easing function don’t increase monotonically.
Declaration
Swift
case sampledDataXValuesNonMonotonic