Contents

unitMultiplied(by:)

Creates a complex unit by multiplying the receiving unit with another unit.

Declaration

func unitMultiplied(by unit: HKUnit) -> HKUnit

Parameters

  • unit:

    The unit to be multiplied.

Return Value

A new, complex unit.

Discussion

You can create a complex unit by multiplying two units together. For example, you could create a foot-pound unit by multiplying a foot unit by a pound unit as shown below.

See Also

Related Documentation

Performing unit math