NumberFormatter
extension NumberFormatter
-
Static function that return the
NumberFormatter
for given currency.Declaration
Swift
static func formatter(with currencyCode: String) -> NumberFormatter
Parameters
currencyCode
Three letter currency code eg
USD
. ### Usage: ###let formatter = NumberFormatter.formatter(with: "USD")