Showing
5 changed files
with
67 additions
and
7 deletions
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>1</integer> | 10 | + <integer>0</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>0</integer> | 10 | + <integer>1</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
No preview for this file type
This diff is collapsed. Click to expand it.
... | @@ -8,6 +8,18 @@ | ... | @@ -8,6 +8,18 @@ |
8 | import UIKit | 8 | import UIKit |
9 | 9 | ||
10 | @objc public class MarketPassInfoViewController: UIViewController { | 10 | @objc public class MarketPassInfoViewController: UIViewController { |
11 | + @IBOutlet weak var heroImage: UIImageView! | ||
12 | + @IBOutlet weak var heroTitleLabel: UILabel! | ||
13 | + @IBOutlet weak var storeInfoImage: UIImageView! | ||
14 | + @IBOutlet weak var storeInfoTitleLabel: UILabel! | ||
15 | + @IBOutlet weak var storeInfoSubtitleLabel: UILabel! | ||
16 | + @IBOutlet weak var eshopInfoImage: UIImageView! | ||
17 | + @IBOutlet weak var eshopInfoTitleLabel: UILabel! | ||
18 | + @IBOutlet weak var eshopInfoSubtitleLabel: UILabel! | ||
19 | + @IBOutlet weak var abInfoImage: UIImageView! | ||
20 | + @IBOutlet weak var abInfoTitleLabel: UILabel! | ||
21 | + @IBOutlet weak var abInfoSubtitleLabel: UILabel! | ||
22 | + @IBOutlet weak var okButton: UIButton! | ||
11 | 23 | ||
12 | public override func viewDidLoad() { | 24 | public override func viewDidLoad() { |
13 | super.viewDidLoad() | 25 | super.viewDidLoad() |
... | @@ -16,11 +28,8 @@ import UIKit | ... | @@ -16,11 +28,8 @@ import UIKit |
16 | 28 | ||
17 | setBackButton() | 29 | setBackButton() |
18 | setNavigationTitle("Οδηγίες χρήσης") | 30 | setNavigationTitle("Οδηγίες χρήσης") |
19 | - // Setup the info button with an action | 31 | + |
20 | - setNavBarRightInfoButton() { | 32 | + setupUI() |
21 | - // This closure is the action that will be executed when the info button is tapped | ||
22 | -// self.presentInfoPopup() | ||
23 | - } | ||
24 | } | 33 | } |
25 | 34 | ||
26 | public override func viewWillAppear(_ animated: Bool) { | 35 | public override func viewWillAppear(_ animated: Bool) { |
... | @@ -30,4 +39,55 @@ import UIKit | ... | @@ -30,4 +39,55 @@ import UIKit |
30 | 39 | ||
31 | self.navigationController?.hideHairline() | 40 | self.navigationController?.hideHairline() |
32 | } | 41 | } |
42 | + | ||
43 | + // MARK: - Functions | ||
44 | + func setupUI() { | ||
45 | + heroImage.image = UIImage(named: "pass_info_hero", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
46 | + storeInfoImage.image = UIImage(named: "pass_info_cart", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
47 | + eshopInfoImage.image = UIImage(named: "pass_info_globe", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
48 | + abInfoImage.image = UIImage(named: "pass_info_ab", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
49 | + | ||
50 | + heroTitleLabel.text = "Πως λειτουργεί:" | ||
51 | + heroTitleLabel.font = UIFont(name: "BTCosmo-Bold", size: 24) | ||
52 | + heroTitleLabel.textColor = UIColor(rgb: 0x212121) | ||
53 | + | ||
54 | + // StoreInfoView | ||
55 | + storeInfoTitleLabel.text = "Εξαργύρωση σε φυσικά καταστήματα" | ||
56 | + storeInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0) | ||
57 | + storeInfoTitleLabel.textColor = UIColor(rgb: 0x212121) | ||
58 | + | ||
59 | + storeInfoSubtitleLabel.text = "Σκάναρε το barcode από το κινητό σου στο ταμείο του καταστήματος και κέρδισε απευθείας έκπτωση από τα διαθέσιμα κουπόνια." | ||
60 | + storeInfoSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0) | ||
61 | + storeInfoSubtitleLabel.textColor = UIColor(rgb: 0x212121) | ||
62 | + | ||
63 | + // EshopInfoView | ||
64 | + eshopInfoTitleLabel.text = "Εξαργύρωση στο eshop" | ||
65 | + eshopInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0) | ||
66 | + eshopInfoTitleLabel.textColor = UIColor(rgb: 0x212121) | ||
67 | + | ||
68 | + eshopInfoSubtitleLabel.text = "Πληκτρολόγησε τον κωδικό σου στο αντίστοιχο πεδίο κατά το checkout στο eshop και κέρδισε απευθείας έκπτωση από τα διαθέσιμα κουπόνια." | ||
69 | + eshopInfoSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0) | ||
70 | + eshopInfoSubtitleLabel.textColor = UIColor(rgb: 0x212121) | ||
71 | + | ||
72 | + // ABInfoView | ||
73 | + abInfoTitleLabel.text = "Ειδικά για τον ΑΒ" | ||
74 | + abInfoTitleLabel.font = UIFont(name: "PeridotPE-Bold", size: 19.0) | ||
75 | + abInfoTitleLabel.textColor = UIColor(rgb: 0x212121) | ||
76 | + | ||
77 | + abInfoSubtitleLabel.text = "1. Eνεργοποίησε τον κωδικό στην κάρτα ΑΒ PLUS στο kiosk του καταστήματος ή μέσω eshop / app στην ενοτητα στην ενότητα Συνεργασίες – SUPERMARKET DEALS.\n\n2. Κάνε τις αγορές σου και κέρδισε απευθείας έκπτωση με χρήση της AB PLUS από τα διαθέσιμα κουπόνια." | ||
78 | + abInfoSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0) | ||
79 | + abInfoSubtitleLabel.textColor = UIColor(rgb: 0x212121) | ||
80 | + | ||
81 | + // okButton | ||
82 | + okButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 15) | ||
83 | + okButton.setTitle("Επιστροφή στο Supermarket Deals", for: .normal) | ||
84 | + okButton.setTitleColor(.white, for: .normal) | ||
85 | + okButton.backgroundColor = UIColor(rgb: 0x0EA600) | ||
86 | + okButton.layer.cornerRadius = 10.0 | ||
87 | + } | ||
88 | + | ||
89 | + // MARK: - Actions | ||
90 | + @IBAction func okButtonAction(_ sender: Any) { | ||
91 | + self.navigationController?.popViewController(animated: true) | ||
92 | + } | ||
33 | } | 93 | } | ... | ... |
-
Please register or login to post a comment