comparison LazyBear/Views/Global Helpers/StockItem.swift @ 413:2984d8946342

Minor UI changes
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Wed, 09 Jun 2021 10:23:52 +0200
parents 8357b101df67
children 9b7af8e83d12
comparison
equal deleted inserted replaced
412:a7c9dd0c5822 413:2984d8946342
71 .fontWeight(.semibold) 71 .fontWeight(.semibold)
72 .opacity(0.6) 72 .opacity(0.6)
73 .lineLimit(1) 73 .lineLimit(1)
74 74
75 let priceViewStyle = PriceViewStyle( 75 let priceViewStyle = PriceViewStyle(
76 alignment: .leading, 76 horizontalAlignment: .leading,
77 verticalAlignment: .center,
78 orientation: .VStack,
77 priceFont: .body, 79 priceFont: .body,
78 priceFontWeight: .semibold, 80 priceFontWeight: .semibold,
79 percentFont: .callout, 81 percentFont: .callout,
80 percentFontWeight: .semibold 82 percentFontWeight: .semibold,
83 showBackground: false
81 ) 84 )
82 85
83 PriceView(latestPrice: company.latestPrice ?? 0, 86 PriceView(latestPrice: company.latestPrice ?? 0,
84 changePercent: company.changePercent ?? 0, 87 changePercent: company.changePercent ?? 0,
85 style: priceViewStyle) 88 style: priceViewStyle)
130 .padding(.vertical, 10) 133 .padding(.vertical, 10)
131 .padding(.leading) 134 .padding(.leading)
132 } 135 }
133 136
134 let priceViewStyle = PriceViewStyle( 137 let priceViewStyle = PriceViewStyle(
135 alignment: .leading, 138 horizontalAlignment: .leading,
139 verticalAlignment: .center,
140 orientation: .VStack,
136 priceFont: .body, 141 priceFont: .body,
137 priceFontWeight: .semibold, 142 priceFontWeight: .semibold,
138 percentFont: .callout, 143 percentFont: .callout,
139 percentFontWeight: .semibold 144 percentFontWeight: .semibold,
145 showBackground: false
140 ) 146 )
141 147
142 PriceView(latestPrice: company.latestPrice ?? 0, 148 PriceView(latestPrice: company.latestPrice ?? 0,
143 changePercent: company.changePercent ?? 0, 149 changePercent: company.changePercent ?? 0,
144 style: priceViewStyle) 150 style: priceViewStyle)