comparison LazyBear/Styles/PriceViewStyle.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 933546fa5651
children
comparison
equal deleted inserted replaced
412:a7c9dd0c5822 413:2984d8946342
6 // 6 //
7 7
8 import SwiftUI 8 import SwiftUI
9 9
10 class PriceViewStyle { 10 class PriceViewStyle {
11 var alignment: HorizontalAlignment 11 var horizontalAlignment: HorizontalAlignment
12 var verticalAlignment: VerticalAlignment
13 var orientation: Orientation
12 var priceFont: Font 14 var priceFont: Font
13 var priceFontWeight: Font.Weight 15 var priceFontWeight: Font.Weight
14 var percentFont: Font 16 var percentFont: Font
15 var percentFontWeight: Font.Weight 17 var percentFontWeight: Font.Weight
18 var showBackground: Bool
16 19
17 init(alignment: HorizontalAlignment, priceFont: Font, priceFontWeight: Font.Weight, percentFont: Font, percentFontWeight: Font.Weight) { 20 init(horizontalAlignment: HorizontalAlignment, verticalAlignment: VerticalAlignment, orientation: Orientation, priceFont: Font, priceFontWeight: Font.Weight, percentFont: Font, percentFontWeight: Font.Weight, showBackground: Bool) {
18 self.alignment = alignment 21 self.horizontalAlignment = horizontalAlignment
22 self.verticalAlignment = verticalAlignment
23 self.orientation = orientation
19 self.priceFont = priceFont 24 self.priceFont = priceFont
20 self.priceFontWeight = priceFontWeight 25 self.priceFontWeight = priceFontWeight
21 self.percentFont = percentFont 26 self.percentFont = percentFont
22 self.percentFontWeight = percentFontWeight 27 self.percentFontWeight = percentFontWeight
28 self.showBackground = showBackground
23 } 29 }
24 } 30 }
31
32 enum Orientation {
33 case HStack, VStack
34 }