Last active
September 24, 2017 02:31
-
-
Save allgamesallfree/9c5c3888c29d6250b9c218854e18f956 to your computer and use it in GitHub Desktop.
CryptoTracker Format Currency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private func formatAsCurrencyString(value: NSNumber?) -> String? { | |
let formatter = NumberFormatter() | |
formatter.locale = Locale(identifier: "en_US") | |
formatter.numberStyle = .currency | |
// TODO: Unwrap the number as a formatted currency String | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment