RSDUSInfantMassPickerDataSourceObject

public struct RSDUSInfantMassPickerDataSourceObject : RSDUSMeasurementPickerDataSource

RSDUSInfantMassPickerDataSource is a custom weight picker for use when the Locale uses US Customary units (not metric system) and the mass is for an infant in lb, oz.

  • The separator is not used with the mass 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: RSDMassFormatter
  • The mass choices are hard coded from 1 lb to 20 lb, 15 oz.

    Declaration

    Swift

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

    Declaration

    Swift

    public init(formatter: RSDMassFormatter? = nil)

    Parameters

    formatter

    The mass 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.