Mercurial > public > simoleon
comparison Simoleon/Helpers/CurrencySelectorLabel.swift @ 187:13d5a8deb6c2
add AboutView and FavoritesView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Thu, 23 Dec 2021 16:12:22 +0100 |
parents | 2fc95efcb1ee |
children |
comparison
equal
deleted
inserted
replaced
186:1ebd1c5dd302 | 187:13d5a8deb6c2 |
---|---|
14 RoundedRectangle(cornerRadius: 15) | 14 RoundedRectangle(cornerRadius: 15) |
15 .foregroundColor(Color(.secondarySystemBackground)) | 15 .foregroundColor(Color(.secondarySystemBackground)) |
16 .frame(height: 60) | 16 .frame(height: 60) |
17 .overlay( | 17 .overlay( |
18 HStack { | 18 HStack { |
19 let flagName = getFlagName(currency: currency) | 19 Flag(currencyCode: currency.code) |
20 Flag(flagName: flagName) | |
21 Text(currency.code) | 20 Text(currency.code) |
22 .font(.headline) | 21 .font(.headline) |
23 .foregroundColor(.primary) | 22 .foregroundColor(.primary) |
24 .padding(.leading, 5) | 23 .padding(.leading, 5) |
25 } | 24 } |