RSDUSHeightPickerDataSourceObject

public struct RSDUSHeightPickerDataSourceObject : RSDUSMeasurementPickerDataSource

RSDUSHeightPickerDataSourceObject is a custom height picker for use when the Locale uses US Customary units (not metric system).

  • The separator is not used with the height picker.

    Declaration

    Swift

    public let separator: String?
  • The unit bounds for the source.

    Declaration

    Swift

    public let largeUnitBounds: (lower: Int, upper: Int)
  • The formatter to use for converting the value inches and feet.

    Declaration

    Swift

    public let formatter: RSDLengthFormatter
  • The choices are hardcoded for a range from 1’ to 8’ 11".

    Declaration

    Swift

    public let choices: [[RSDChoice]]
  • Default initializer.

    Declaration

    Swift

    public init(formatter: RSDLengthFormatter? = nil)

    Parameters

    formatter

    The length formatter to use for converting to and from text.

  • Returns the text answer to display for a given selected answer.

    Declaration

    Swift

    public func textAnswer(from selectedAnswer: Any?) -> String?

    Parameters

    selectedAnswer

    The answer to convert.

    Return Value

    A text value for the answer to display to the user.