Contents

convert(_:from:)

Converts a length in the specified unit to a length in points suitable for use in the environment this converter is associated with.

Declaration

@MainActor @preconcurrency func convert(_ lengthValue: CGFloat, from unit: UnitLength) -> CGFloat

Return Value

A value in points. Use this value only in the scene this converter was associated with.

See Also

Converting a unit length