Commit 294fc4c2 by Demid Merzlyakov

IOS-42: AQI text layout.

parent edb1d483
......@@ -55,7 +55,7 @@ class TodayAirQualityCell: UITableViewCell {
let attrString = NSMutableAttributedString(string: "\(aqiText)\n\(aqiConditionText)",
attributes: [.font : AppFont.SFPro.regular(size: 24),
.foregroundColor :ThemeManager.currentTheme.secondaryTextColor])
attrString.addAttributes([.font : AppFont.SFPro.medium(size: 34)],
attrString.addAttributes([.font : AppFont.SFPro.medium(size: 24)],
range: NSRange(location: aqiText.count + 1,
length: aqiConditionText.count))
airQualityLabel.attributedText = attrString
......@@ -145,7 +145,8 @@ private extension TodayAirQualityCell {
airDescLabel.snp.makeConstraints { (make) in
make.left.right.equalToSuperview().inset(50)
make.top.equalTo(airQualityLabel.snp.bottom).offset(9)
make.top.greaterThanOrEqualTo(airQualityLabel.snp.bottom).offset(8)
// also see prepareValueProgress
}
}
......@@ -165,6 +166,10 @@ private extension TodayAirQualityCell {
make.width.height.equalTo(77)
make.center.equalTo(airQualityValueLabel)
}
airDescLabel.snp.makeConstraints { (make) in
make.top.greaterThanOrEqualTo(cirqueView.snp.bottom).offset(6)
}
}
func prepareStackView() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment