Reputation: 255
here's my case - I have a number, for example 5.9, and I want to produce a String like "5 ft, 11 in". Can this be accomplished using MeasurementsFormatter API? I see in deprecated API's sources, LengthFormatter, that this was implemented: https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/LengthFormatter.swift - line 79. However, this API is deprecated and it's method is not what I'm looking for, because I don't convert from meters to ft, in. Any help would be appreciated.
Upvotes: 1
Views: 63