Mercurial > public > simoleon
view Simoleon/Functions/GetFlagName.swift @ 185:2fc95efcb1ee
connect backend
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 22 Dec 2021 16:12:23 +0100 |
parents | |
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) }