Mercurial > public > simoleon
view Simoleon/Functions/GetFlagName.swift @ 186:1ebd1c5dd302
finish ConversionView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 23 Dec 2021 11:30:38 +0100 |
parents | 2fc95efcb1ee |
children |
line wrap: on
line source
// // GetFlagName.swift // Simoleon // // Created by Dennis Concepción Martín on 20/12/21. // import Foundation // Given currency code get flag name func getFlagName(currency: SupportedCurrencyResult) -> String { guard currency.isCrypto == 0 else { return "" } let flagName = currency.code.dropLast() return String(flagName) }