isForPersonMassUse
A Boolean value that indicates whether the resulting string represents a person’s mass.
Declaration
var isForPersonMassUse: Bool { get set }Discussion
Returns true if the value passed to string(fromKilograms:) or unitString(fromKilograms:usedUnit:) is a person’s mass; otherwise, false. By default, this property returns false.
The mass formatter uses this property when determining the best unit for a given locale (for example, in the string(fromKilograms:) method).