Mercurial > public > lazybear
diff LazyBear/Styles/PriceViewStyle.swift @ 398:933546fa5651
Implementing CompanyView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sun, 09 May 2021 00:07:44 +0200 |
parents | |
children | 2984d8946342 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBear/Styles/PriceViewStyle.swift Sun May 09 00:07:44 2021 +0200 @@ -0,0 +1,24 @@ +// +// PriceViewStyle.swift +// LazyBear +// +// Created by Dennis Concepción Martín on 8/5/21. +// + +import SwiftUI + +class PriceViewStyle { + var alignment: HorizontalAlignment + var priceFont: Font + var priceFontWeight: Font.Weight + var percentFont: Font + var percentFontWeight: Font.Weight + + init(alignment: HorizontalAlignment, priceFont: Font, priceFontWeight: Font.Weight, percentFont: Font, percentFontWeight: Font.Weight) { + self.alignment = alignment + self.priceFont = priceFont + self.priceFontWeight = priceFontWeight + self.percentFont = percentFont + self.percentFontWeight = percentFontWeight + } +}