CurrencyFormatter
public struct CurrencyFormatter : Sendable
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
currencyFormatCurrency format obtained from a budget
-
Converts milliunit amounts into a budget format currency string
Declaration
Swift
public func currencyString(from amount: Int) -> String?Parameters
fromAmount in milliunits
Return Value
Budget format currency string if conversion is successful, nil otherwise
View on GitHub