Manos Chorianopoulos

MarketPass changes

......@@ -10,6 +10,8 @@ import UIKit
@objc public class MarketPassInfoViewController: UIViewController {
@IBOutlet weak var heroImage: UIImageView!
@IBOutlet weak var heroTitleLabel: UILabel!
@IBOutlet weak var productInfoImage: UIImageView!
@IBOutlet weak var productInfoTitleLabel: UILabel!
@IBOutlet weak var storeInfoImage: UIImageView!
@IBOutlet weak var storeInfoTitleLabel: UILabel!
@IBOutlet weak var storeInfoSubtitleLabel: UILabel!
......@@ -43,6 +45,7 @@ import UIKit
// MARK: - Functions
func setupUI() {
heroImage.image = UIImage(named: "pass_info_hero", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
productInfoImage.image = UIImage(named: "pass_info_product", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
storeInfoImage.image = UIImage(named: "pass_info_cart", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
eshopInfoImage.image = UIImage(named: "pass_info_globe", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
abInfoImage.image = UIImage(named: "pass_info_ab", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
......@@ -52,6 +55,11 @@ import UIKit
heroTitleLabel.textColor = UIColor(rgb: 0x212121)
// StoreInfoView
productInfoTitleLabel.text = "Επιλογή προϊόντων με εκπτωτικό κουπόνι SUPERMARKET DEALS για τις αγορές σου."
productInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0)
productInfoTitleLabel.textColor = UIColor(rgb: 0x212121)
// StoreInfoView
storeInfoTitleLabel.text = "Εξαργύρωση σε φυσικά καταστήματα"
storeInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0)
storeInfoTitleLabel.textColor = UIColor(rgb: 0x212121)
......@@ -74,7 +82,7 @@ import UIKit
abInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0)
abInfoTitleLabel.textColor = UIColor(rgb: 0x212121)
abInfoSubtitleLabel.text = "1. Eνεργοποίησε τον κωδικό στην κάρτα ΑΒ PLUS στο kiosk του καταστήματος ή μέσω eshop / app στην ενοτητα στην ενότητα Συνεργασίες – SUPERMARKET DEALS.\n\n2. Κάνε τις αγορές σου και κέρδισε απευθείας έκπτωση με χρήση της AB PLUS από τα διαθέσιμα κουπόνια."
abInfoSubtitleLabel.text = "1. Eνεργοποίησε τον κωδικό στην κάρτα ΑΒ PLUS στο kiosk του καταστήματος ή μέσω eshop / app στην ενότητα Συνεργασίες – SUPERMARKET DEALS.\n\n2. Κάνε τις αγορές σου και κέρδισε απευθείας έκπτωση με χρήση της AB PLUS από τα διαθέσιμα κουπόνια."
abInfoSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0)
abInfoSubtitleLabel.textColor = UIColor(rgb: 0x212121)
......
......@@ -87,7 +87,7 @@ import SwiftEventBus
passTitleLabel.font = UIFont(name: "BTCosmo-Bold", size: 22)
passTitleLabel.textColor = .white
passSubtitleLabel.text = "Χρησιμοποίησε τον κωδικό σου και κέρδισε έκπτωση στις αγορές σου!"
passSubtitleLabel.text = "Χρησιμοποίησε το μοναδικό κωδικό σου για να κερδίσεις έκπτωση σε επιλεγμένα προϊόντα. Ανακάλυψε τα κουπόνια στο For You."
passSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0)
passSubtitleLabel.textColor = .white
......@@ -116,14 +116,15 @@ import SwiftEventBus
let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Regular", size: 17) ?? UIFont.systemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
let attrBold = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Bold", size: 17) ?? UIFont.boldSystemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
let couponsValueNormalText1 = "Έχεις κουπόνια συνολικής αξίας "
let couponsValueBoldText = couponsValueString + "€"
let couponsValueNormalText1 = "Με τα διαθέσιμα κουπόνια μπορείς να εξοικονομήσεις έως και "
let couponsValueBoldText = couponsValueString + "€."
let couponsValueAttributedString = NSMutableAttributedString(string:couponsValueNormalText1, attributes:attrRegular)
let couponsValueBoldString = NSMutableAttributedString(string: couponsValueBoldText, attributes:attrBold)
couponsValueAttributedString.append(couponsValueBoldString)
couponsValueLabel.attributedText = couponsValueAttributedString
couponsValueLabel.textAlignment = .left
mapButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 16)
mapButton.setTitle("Δες στο χάρτη", for: .normal)
......@@ -223,14 +224,15 @@ import SwiftEventBus
let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Regular", size: 17) ?? UIFont.systemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
let attrBold = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Bold", size: 17) ?? UIFont.boldSystemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
let couponsValueNormalText1 = "Έχεις κουπόνια συνολικής αξίας "
let couponsValueBoldText = couponsValueString + "€"
let couponsValueNormalText1 = "Με τα διαθέσιμα κουπόνια μπορείς να εξοικονομήσεις έως και "
let couponsValueBoldText = couponsValueString + "€."
let couponsValueAttributedString = NSMutableAttributedString(string:couponsValueNormalText1, attributes:attrRegular)
let couponsValueBoldString = NSMutableAttributedString(string: couponsValueBoldText, attributes:attrBold)
couponsValueAttributedString.append(couponsValueBoldString)
couponsValueLabel.attributedText = couponsValueAttributedString
couponsValueLabel.textAlignment = .left
let formattedCost = couponsValueString.replacingOccurrences(of: ".", with: ",")
couponsValueLabel.isAccessibilityElement = true
......
{
"images" : [
{
"filename" : "pass_info_product.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "pass_info_product 1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "pass_info_product 2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}