๐ŸŒ€Formatter

import Foundation

// ๐ŸŒ€Formatter + .currency
extension Formatter {
    public static var currency: NumberFormatter {
        let formatter = NumberFormatter()
        formatter.numberStyle = .currency  // โญ๏ธ $999.00
        return formatter
    }
}

Last updated