comparison LazyBear/Views/Company/Helpers/InsiderTransactionsRow.swift @ 457:c6913f0ce46e

Minor UI Updates
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Mon, 28 Jun 2021 14:03:50 +0200
parents 428109b1e3f0
children
comparison
equal deleted inserted replaced
456:d576b2b59014 457:c6913f0ce46e
18 .fontWeight(.semibold) 18 .fontWeight(.semibold)
19 19
20 Text(getDateComponents(.day, date)) 20 Text(getDateComponents(.day, date))
21 .font(.title) 21 .font(.title)
22 .fontWeight(.semibold) 22 .fontWeight(.semibold)
23 .foregroundColor(Color(.systemBlue)) 23 .foregroundColor(Color.blue)
24 24
25 Text(getDateComponents(.year, date)) 25 Text(getDateComponents(.year, date))
26 .font(.caption) 26 .font(.caption)
27 .fontWeight(.semibold) 27 .fontWeight(.semibold)
28 } 28 }
40 40
41 Spacer() 41 Spacer()
42 if let transactionShares = insiderTransaction.transactionShares { 42 if let transactionShares = insiderTransaction.transactionShares {
43 VStack(alignment: .trailing) { 43 VStack(alignment: .trailing) {
44 Text("\(transactionShares)") 44 Text("\(transactionShares)")
45 .foregroundColor(transactionShares < 0 ? Color(.systemRed): Color(.systemGreen)) 45 .foregroundColor(transactionShares < 0 ? Color.red: Color.green)
46 } 46 }
47 .padding(.leading) 47 .padding(.leading)
48 } 48 }
49 } 49 }
50 } 50 }