init(symbol:converter:)
Initializes a dimensional unit with the symbol and unit converter you specify.
Declaration
init(symbol: String, converter: UnitConverter)Parameters
- symbol:
The symbol used to represent the unit.
- converter:
The unit converter used to represent the unit in terms of the dimension’s base unit.
Return Value
A new dimensional unit with the specified symbol and unit converter.
Discussion
This is the designated initializer.