RSDNumberRange

public protocol RSDNumberRange : RSDRange

RSDNumberRange extends the properties of an RSDInputField for a decimal or integer data type.

  • The minimum allowed number. When the value of this property is nil, there is no minimum.

    Declaration

    Swift

    var minimumValue: Decimal? { get }
  • The maximum allowed number. When the value of this property is nil, there is no maximum.

    Declaration

    Swift

    var maximumValue: Decimal? { get }
  • A step interval to be used for a slider or picker.

    Declaration

    Swift

    var stepInterval: Decimal? { get }
  • A unit label associated with this property. The unit should not be localized. Instead, this value is used to determine the unit for measurements converted to the unit expected by the researcher.

    For example, if a measurement of distance is displayed and/or returned by the user in feet, but the researcher expects the returned value in meters then the unit here would be m and the formatter would be a LengthFormatter that uses the current locale with a unitStyle of .long.

    Declaration

    Swift

    var unit: String? { get }