CurrencyFormatter
public class CurrencyFormatter
Converts currency data from API responses into displayeable strings
-
Initializes the formatter using format information from a budget
Declaration
Swift
public init(currencyFormat: CurrencyFormat)
Parameters
currencyFormat
Currency format obtained from a budget
-
Converts milliunit amounts into a budget format currency string
Declaration
Swift
public func currencyString(from amount: Int) -> String?
Parameters
from
Amount in milliunits
Return Value
Budget format currency string if conversion is successful, nil otherwise