Fix text size in purchase cells
This commit is contained in:
parent
f86de0dcfa
commit
d8ef4f96e0
|
@ -137,6 +137,10 @@ extension UILabel {
|
||||||
font = .preferredFont(forTextStyle: .body)
|
font = .preferredFont(forTextStyle: .body)
|
||||||
textColor = theme.palette.accent1
|
textColor = theme.palette.accent1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func applySecondarySize(_ theme: Theme) {
|
||||||
|
font = .preferredFont(forTextStyle: .callout)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension UITextField {
|
extension UITextField {
|
||||||
|
|
|
@ -38,6 +38,8 @@ class PurchaseTableViewCell: UITableViewCell {
|
||||||
|
|
||||||
labelTitle?.applyAccent(.current)
|
labelTitle?.applyAccent(.current)
|
||||||
labelPrice?.applyAccent(.current)
|
labelPrice?.applyAccent(.current)
|
||||||
|
labelDescription?.apply(.current)
|
||||||
|
labelDescription?.applySecondarySize(.current)
|
||||||
}
|
}
|
||||||
|
|
||||||
func fill(product: SKProduct, customDescription: String? = nil) {
|
func fill(product: SKProduct, customDescription: String? = nil) {
|
||||||
|
|
Loading…
Reference in New Issue