public final class RSDHeightInputTableItem : RSDTextInputTableItem
A custom implementation for inputing a person’s height that can set up a picker for
setting the height of an adult. Typically, US participants will report an adult height
using ft and in, whereas a child or infant will be reported in inches. The placeholder
text for child or infant measurement range will be either
depending upon the participant’s locale.
The base unit is the unit of mass that the measurement should be converted to in order to save the result. Because the
Measurementclass has a generic
UnitType, it cannot be easily converted to a
Codableobject so the results are stored as
.decimalbase type with the unit symbol also stored on the result.
public let baseUnit: UnitLength
The index of this item relative to all rows in the section in which this item resides.
The RSDInputField representing this tableItem.
The UI hint for this row of the table.
The measurement range for the input field.
convertAnswer()function to convert the
Measurementreturned by the formatter into a decimal value in the
override public func convertAnswer(_ newValue: Any) throws -> Any?