Manos Chorianopoulos

fix coupon & telco offer image dimentions

...@@ -70,7 +70,7 @@ import SwiftEventBus ...@@ -70,7 +70,7 @@ import SwiftEventBus
70 70
71 couponImage.load(link: ccms?._imageUrl ?? "", placeholder: UIImage(), cache: URLCache()) 71 couponImage.load(link: ccms?._imageUrl ?? "", placeholder: UIImage(), cache: URLCache())
72 couponImage.contentMode = .scaleAspectFill 72 couponImage.contentMode = .scaleAspectFill
73 - couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25 73 + couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
74 74
75 nameLabel.text = ccms?._titleOffer ?? "" 75 nameLabel.text = ccms?._titleOffer ?? ""
76 descriptionLabel.text = ccms?._description ?? "" 76 descriptionLabel.text = ccms?._description ?? ""
......
...@@ -117,7 +117,7 @@ import AVFoundation ...@@ -117,7 +117,7 @@ import AVFoundation
117 couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache()) 117 couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
118 } 118 }
119 119
120 - couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25 120 + couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
121 121
122 if (isMarket == true) { 122 if (isMarket == true) {
123 couponImage.contentMode = .scaleAspectFit 123 couponImage.contentMode = .scaleAspectFit
......
...@@ -77,7 +77,7 @@ import SwiftEventBus ...@@ -77,7 +77,7 @@ import SwiftEventBus
77 77
78 couponImage.load(link: couponset?.img_preview ?? "", placeholder: UIImage(), cache: URLCache()) 78 couponImage.load(link: couponset?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
79 couponImage.contentMode = .scaleAspectFill 79 couponImage.contentMode = .scaleAspectFill
80 - couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25 80 + couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
81 81
82 nameLabel.text = couponset?.name ?? "" 82 nameLabel.text = couponset?.name ?? ""
83 let htmlDescrText = couponset?.description ?? "" 83 let htmlDescrText = couponset?.description ?? ""
......
...@@ -81,7 +81,7 @@ import SwiftEventBus ...@@ -81,7 +81,7 @@ import SwiftEventBus
81 81
82 couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache()) 82 couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
83 couponImage.contentMode = .scaleAspectFill 83 couponImage.contentMode = .scaleAspectFill
84 - couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25 84 + couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
85 85
86 nameLabel.text = couponSetData?.name ?? "" 86 nameLabel.text = couponSetData?.name ?? ""
87 // descriptionLabel.text = couponSetData?.short_description ?? "" 87 // descriptionLabel.text = couponSetData?.short_description ?? ""
......
...@@ -77,7 +77,7 @@ import SwiftEventBus ...@@ -77,7 +77,7 @@ import SwiftEventBus
77 77
78 heroImage.load(link: ccms?._imageOfferUrl ?? "", placeholder: UIImage(), cache: URLCache()) 78 heroImage.load(link: ccms?._imageOfferUrl ?? "", placeholder: UIImage(), cache: URLCache())
79 heroImage.contentMode = .scaleAspectFill 79 heroImage.contentMode = .scaleAspectFill
80 - heroImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25 80 + heroImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
81 nameLabel.text = ccms?._description ?? "" 81 nameLabel.text = ccms?._description ?? ""
82 // descriptionLabel.text = ccms?._subtitle ?? "" 82 // descriptionLabel.text = ccms?._subtitle ?? ""
83 83
......
...@@ -52,7 +52,7 @@ import AVFoundation ...@@ -52,7 +52,7 @@ import AVFoundation
52 // couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache()) 52 // couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
53 couponImage.image = UIImage(named: "market_bg", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) 53 couponImage.image = UIImage(named: "market_bg", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
54 couponImage.contentMode = .scaleAspectFill 54 couponImage.contentMode = .scaleAspectFill
55 - couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25 55 + couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
56 56
57 nameLabel.text = "Εκπτωτικό κουπόνι COSMOTE SUPERMARKET DEALS!" 57 nameLabel.text = "Εκπτωτικό κουπόνι COSMOTE SUPERMARKET DEALS!"
58 discriptionLabel.text = "Χρησιμοποίησε τον παρακάτω κωδικό και πάρε έκπτωση στα ενεργά κουπόνια προσφορών." 58 discriptionLabel.text = "Χρησιμοποίησε τον παρακάτω κωδικό και πάρε έκπτωση στα ενεργά κουπόνια προσφορών."
......