Manos Chorianopoulos

MyRewardsViewController ui fix

...@@ -100,6 +100,7 @@ import UIKit ...@@ -100,6 +100,7 @@ import UIKit
100 self.myCouponsView.layer.cornerRadius = 28 100 self.myCouponsView.layer.cornerRadius = 28
101 self.myCouponsView.layer.masksToBounds = true 101 self.myCouponsView.layer.masksToBounds = true
102 102
103 + self.myCouponsCountView.widthAnchor.constraint(greaterThanOrEqualToConstant: 21).isActive = true
103 self.myCouponsCountView.layer.borderWidth = 2.0 104 self.myCouponsCountView.layer.borderWidth = 2.0
104 self.myCouponsCountView.layer.borderColor = UIColor(rgb: 0xFFFFFF).cgColor 105 self.myCouponsCountView.layer.borderColor = UIColor(rgb: 0xFFFFFF).cgColor
105 self.myCouponsCountView.layer.cornerRadius = 10.5 106 self.myCouponsCountView.layer.cornerRadius = 10.5
...@@ -113,6 +114,7 @@ import UIKit ...@@ -113,6 +114,7 @@ import UIKit
113 self.myCouponsCountLabel.text = "0" 114 self.myCouponsCountLabel.text = "0"
114 self.myCouponsCountLabel.font = UIFont(name: "PingLCG-Bold", size: 14) 115 self.myCouponsCountLabel.font = UIFont(name: "PingLCG-Bold", size: 14)
115 self.myCouponsCountLabel.textColor = UIColor(rgb: 0xFFFFFF) 116 self.myCouponsCountLabel.textColor = UIColor(rgb: 0xFFFFFF)
117 + self.myCouponsCountLabel.textAlignment = .center
116 self.myCouponsCountLabel.frame.size.width = self.myCouponsCountLabel.intrinsicContentSize.width 118 self.myCouponsCountLabel.frame.size.width = self.myCouponsCountLabel.intrinsicContentSize.width
117 self.myCouponsCountLabel.frame.size.height = self.myCouponsCountLabel.intrinsicContentSize.height 119 self.myCouponsCountLabel.frame.size.height = self.myCouponsCountLabel.intrinsicContentSize.height
118 120
......