Manos Chorianopoulos

redesign WalletVC, CouponsVC

...@@ -45,7 +45,7 @@ import UIKit ...@@ -45,7 +45,7 @@ import UIKit
45 45
46 couponBgImage.image = UIImage(named: "coupon_bg_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) 46 couponBgImage.image = UIImage(named: "coupon_bg_2", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
47 47
48 - borderView.addDashedBorderVertical(color: UIColor(red: 0.44, green: 0.44, blue: 0.44, alpha: 1.00), width: 1.0, height: 110.0) 48 + borderView.addDashedBorderVertical(color: UIColor(red: 0.62, green: 0.62, blue: 0.61, alpha: 1.00), width: 1.0, height: 110.0)
49 } 49 }
50 50
51 public override func setSelected(_ selected: Bool, animated: Bool) { 51 public override func setSelected(_ selected: Bool, animated: Bool) {
......
...@@ -25,15 +25,15 @@ import SwiftEventBus ...@@ -25,15 +25,15 @@ import SwiftEventBus
25 setBackButton() 25 setBackButton()
26 setNavigationTitle("Ενεργά κουπόνια") 26 setNavigationTitle("Ενεργά κουπόνια")
27 27
28 - backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) 28 +// backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
29 29
30 tableView.delegate = self 30 tableView.delegate = self
31 tableView.dataSource = self 31 tableView.dataSource = self
32 32
33 - tableView.clipsToBounds = true 33 +// tableView.clipsToBounds = true
34 - tableView.layer.cornerRadius = 30 34 +// tableView.layer.cornerRadius = 30
35 - tableView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius 35 +// tableView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius
36 - tableView.contentInset.top = 50 36 + tableView.contentInset.top = 30
37 } 37 }
38 38
39 public override func viewWillAppear(_ animated: Bool) { 39 public override func viewWillAppear(_ animated: Bool) {
...@@ -83,7 +83,7 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -83,7 +83,7 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
83 } 83 }
84 84
85 public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 85 public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
86 - return 120.0 + 8.0 86 + return 130.0 + 8.0
87 // return UITableViewAutomaticDimension 87 // return UITableViewAutomaticDimension
88 } 88 }
89 89
......
...@@ -193,7 +193,7 @@ extension UIView { ...@@ -193,7 +193,7 @@ extension UIView {
193 let lineLayer = CAShapeLayer() 193 let lineLayer = CAShapeLayer()
194 lineLayer.strokeColor = color 194 lineLayer.strokeColor = color
195 lineLayer.lineWidth = width 195 lineLayer.lineWidth = width
196 - lineLayer.lineDashPattern = [5,5] 196 + lineLayer.lineDashPattern = [10,10]
197 197
198 let path = CGMutablePath() 198 let path = CGMutablePath()
199 path.addLines(between: [CGPoint(x: frameSize.width/2, y: 0), CGPoint(x: frameSize.width/2, y: height)]) 199 path.addLines(between: [CGPoint(x: frameSize.width/2, y: 0), CGPoint(x: frameSize.width/2, y: height)])
......
...@@ -741,7 +741,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -741,7 +741,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
741 741
742 } else if (indexPath.section == 3) { 742 } else if (indexPath.section == 3) {
743 if (self.coupons.count > 0) { 743 if (self.coupons.count > 0) {
744 - return 120.0 + 8.0 744 + return 130.0 + 8.0
745 } else { 745 } else {
746 return 0.0 746 return 0.0
747 } 747 }
......