Manos Chorianopoulos

fix coupon & telco offer image dimentions

......@@ -70,7 +70,7 @@ import SwiftEventBus
couponImage.load(link: ccms?._imageUrl ?? "", placeholder: UIImage(), cache: URLCache())
couponImage.contentMode = .scaleAspectFill
couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25
couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
nameLabel.text = ccms?._titleOffer ?? ""
descriptionLabel.text = ccms?._description ?? ""
......
......@@ -117,7 +117,7 @@ import AVFoundation
couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
}
couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25
couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
if (isMarket == true) {
couponImage.contentMode = .scaleAspectFit
......
......@@ -77,7 +77,7 @@ import SwiftEventBus
couponImage.load(link: couponset?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
couponImage.contentMode = .scaleAspectFill
couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25
couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
nameLabel.text = couponset?.name ?? ""
let htmlDescrText = couponset?.description ?? ""
......
......@@ -81,7 +81,7 @@ import SwiftEventBus
couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
couponImage.contentMode = .scaleAspectFill
couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25
couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
nameLabel.text = couponSetData?.name ?? ""
// descriptionLabel.text = couponSetData?.short_description ?? ""
......
......@@ -77,7 +77,7 @@ import SwiftEventBus
heroImage.load(link: ccms?._imageOfferUrl ?? "", placeholder: UIImage(), cache: URLCache())
heroImage.contentMode = .scaleAspectFill
heroImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25
heroImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
nameLabel.text = ccms?._description ?? ""
// descriptionLabel.text = ccms?._subtitle ?? ""
......
......@@ -52,7 +52,7 @@ import AVFoundation
// couponImage.load(link: couponSetData?.img_preview ?? "", placeholder: UIImage(), cache: URLCache())
couponImage.image = UIImage(named: "market_bg", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
couponImage.contentMode = .scaleAspectFill
couponImageHeight.constant = 255 //230 // 253 // self.uiscreen.height * 0.25
couponImageHeight.constant = 222 // 255 //230 // 253 // self.uiscreen.height * 0.25
nameLabel.text = "Εκπτωτικό κουπόνι COSMOTE SUPERMARKET DEALS!"
discriptionLabel.text = "Χρησιμοποίησε τον παρακάτω κωδικό και πάρε έκπτωση στα ενεργά κουπόνια προσφορών."
......