Choosing units with MeasurementFormatter
问题 This is similar to a question I asked yesterday but the answer I got doesn't seem to work in this case. I'm getting altitude values in meters from Core Location. I want to display these in a localized form. As an example, the altitude where I am right now is 1839m above sea level. This should be displayed as 6033 feet. The best I can do with MeasurementFormatter is "1.143 mi". let meters : Double = 1839 let metersMeasurement = Measurement(value: meters, unit: UnitLength.meters) let