Commit 7cb5705a by Demid Merzlyakov

Remove hardcoded text on Details section.

parent c662952e
......@@ -19,6 +19,7 @@ class TodayConditionButton: UIControl {
self.conditionType = type
super.init(frame: .zero)
prepareSelf()
prepareButton()
prepareImageView()
prepareLabels()
......@@ -52,6 +53,12 @@ class TodayConditionButton: UIControl {
//MARK:- Prepare
private extension TodayConditionButton {
func prepareSelf() {
snp.makeConstraints { (make) in
make.width.equalTo(200)
}
}
func prepareButton() {
self.backgroundColor = ThemeManager.currentTheme.containerBackgroundColor
self.clipsToBounds = false
......@@ -110,7 +117,6 @@ private extension TodayConditionButton {
descriptionLabel.font = AppFont.SFPro.regular(size: 12)
descriptionLabel.textColor = ThemeManager.currentTheme.secondaryTextColor
descriptionLabel.textAlignment = .left
descriptionLabel.text = "80% chance of rain Between 3-7 PM"
addSubview(descriptionLabel)
descriptionLabel.snp.makeConstraints { (make) in
......
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