Contents

unitDivided(by:)

Creates a complex unit by dividing the receiving unit by another unit.

Declaration

func unitDivided(by unit: HKUnit) -> HKUnit

Parameters

  • unit:

    The unit to be divided.

Return Value

A new, complex unit.

Discussion

This method creates a new, complex unit by dividing one unit by another. For example, you can create a meters-per-second unit by dividing a meters unit by a seconds unit, as shown below.

See Also

Related Documentation

Performing unit math