Mercurial > public > lazybear
comparison LazyBear/Views/Home/Helpers/CurrencyItem.swift @ 424:6dd97877f575
Improve code, reorganize files
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sun, 13 Jun 2021 19:40:42 +0200 |
parents | 2984d8946342 |
children | 4effac4733b0 |
comparison
equal
deleted
inserted
replaced
423:bdfdf3a1b34e | 424:6dd97877f575 |
---|---|
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 struct CurrencyItem: View { | 10 struct CurrencyItem: View { |
11 var currencySymbol: String | 11 var currencySymbol: String |
12 var currency: CurrencyModel | 12 var currency: CurrencyModel |
13 var rectangleWidth: CGFloat? | |
13 | 14 |
14 var body: some View { | 15 var body: some View { |
15 RoundedRectangle(cornerRadius: 8) | 16 RoundedRectangle(cornerRadius: 8) |
16 .foregroundColor(Color(.secondarySystemBackground)) | 17 .foregroundColor(Color(.secondarySystemBackground)) |
17 .frame(width: 330, height: 50) | 18 .frame(width: 330, height: 50) |