comparison LazyBear/Views/Company/Helpers/TransactionRow.swift @ 412:a7c9dd0c5822

Main insider view implemented
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Tue, 08 Jun 2021 11:46:58 +0200
parents 681fb377235e
children 2984d8946342
comparison
equal deleted inserted replaced
411:681fb377235e 412:a7c9dd0c5822
38 38
39 Text(transaction.reportedTitle ?? "-") 39 Text(transaction.reportedTitle ?? "-")
40 } 40 }
41 41
42 Spacer() 42 Spacer()
43 VStack(alignment: .trailing) { 43 if let transactionShares = transaction.transactionShares {
44 Text("\(transaction.transactionShares)") 44 VStack(alignment: .trailing) {
45 .foregroundColor(transaction.transactionShares < 0 ? Color(.systemRed): Color(.systemGreen)) 45 Text("\(transactionShares)")
46 .foregroundColor(transactionShares < 0 ? Color(.systemRed): Color(.systemGreen))
47 }
46 } 48 }
47 } 49 }
48 .padding() 50 .padding()
49 ) 51 )
50 } 52 }