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
.
-
Undocumented
Declaration
Swift
public let converter: RSDUnitConverter.USCustomaryUnitConverter<UnitMass> -
The unit bounds for the source.
Declaration
Swift
public let largeUnitBounds: (lower: Int, upper: Int) = (1, 20) -
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
formatterThe 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
selectedAnswerThe answer to convert.
Return Value
A text value for the answer to display to the user.
View on GitHub
RSDUSInfantMassPickerDataSourceObject Structure Reference