Fix text size in purchase cells

This commit is contained in:
Davide De Rosa 2019-11-20 20:00:51 +01:00
parent f86de0dcfa
commit d8ef4f96e0
2 changed files with 6 additions and 0 deletions

View File

@ -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 {

View File

@ -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) {