Contents

isForPersonHeightUse

A Boolean value that indicates whether the resulting string represents a person’s height.

Declaration

var isForPersonHeightUse: Bool { get set }

Discussion

Returns true if the value passed to string(fromMeters:) or unitString(fromMeters:usedUnit:) is a person’s height; otherwise, false. By default, this property returns false.

The length formatter uses this property when determining the best unit for a given locale (for example, in the string(fromMeters:) method).

See Also

Formatting Length Strings