RSDUSMeasurementPickerDataSource
public protocol RSDUSMeasurementPickerDataSource : RSDMultipleComponentChoiceOptions
RSDUSMeasurementPickerDataSource
is a generic protocol for converting US Customary
units (multiple component) to metric units.
-
Undocumented
Declaration
Swift
var converter: RSDUnitConverter.USCustomaryUnitConverter<UnitType>
-
Undocumented
Declaration
Swift
var largeUnitBounds: (lower: Int, upper: Int)
-
selectedAnswer(with:)
Extension methodReturns the selected answer created by the union of the selected rows.
Declaration
Swift
public func selectedAnswer(with selectedRows: [Int]) -> Any?
Parameters
selectedRows
The selected rows, where there is a selected row for each component.
Return Value
The answer created from the given array of selected rows.
-
selectedRows(from:)
Extension methodReturns the selected rows that match the given selected answer (if any).
Declaration
Swift
public func selectedRows(from selectedAnswer: Any?) -> [Int]?
Parameters
selectedAnswer
The selected answer.
Return Value
The selected rows, where there is a selected row for each component, or
nil
if not all rows are selected.