Commit 7cb5705a by Demid Merzlyakov

Remove hardcoded text on Details section.

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