Initializer

init(symbol:converter:)

Initializes a dimensional unit with the specified symbol and unit converter.

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software