comparison LazyBear/Views/Search/Helpers/SearchedCompanyItem.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 4effac4733b0
children
comparison
equal deleted inserted replaced
456:d576b2b59014 457:c6913f0ce46e
20 HStack { 20 HStack {
21 Button(action: { self.showingWatchlistSelector = true }) { 21 Button(action: { self.showingWatchlistSelector = true }) {
22 let watchlistSymbols = watchlistCompanies.map { $0.symbol } 22 let watchlistSymbols = watchlistCompanies.map { $0.symbol }
23 if watchlistSymbols.contains(company.symbol!) { 23 if watchlistSymbols.contains(company.symbol!) {
24 Image(systemName: "star.fill") 24 Image(systemName: "star.fill")
25 .foregroundColor(.yellow) 25 .foregroundColor(Color.yellow)
26 .imageScale(.large) 26 .imageScale(.large)
27 } else { 27 } else {
28 Image(systemName: "star") 28 Image(systemName: "star")
29 .foregroundColor(.yellow) 29 .foregroundColor(Color.yellow)
30 .imageScale(.large) 30 .imageScale(.large)
31 } 31 }
32 } 32 }
33 .buttonStyle(PlainButtonStyle()) 33 .buttonStyle(PlainButtonStyle())
34 34