Showing
5 changed files
with
103 additions
and
5 deletions
... | @@ -65,6 +65,7 @@ | ... | @@ -65,6 +65,7 @@ |
65 | 1EDD4F892AE937AA00A6B5A6 /* LoyaltyHistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EDD4F882AE937AA00A6B5A6 /* LoyaltyHistoryViewController.swift */; }; | 65 | 1EDD4F892AE937AA00A6B5A6 /* LoyaltyHistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EDD4F882AE937AA00A6B5A6 /* LoyaltyHistoryViewController.swift */; }; |
66 | 1EE67DA32AE2AF2B0057C8CC /* UnifiedCouponsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EE67DA22AE2AF2B0057C8CC /* UnifiedCouponsViewController.swift */; }; | 66 | 1EE67DA32AE2AF2B0057C8CC /* UnifiedCouponsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EE67DA22AE2AF2B0057C8CC /* UnifiedCouponsViewController.swift */; }; |
67 | 1EEC5C582CC15C4600CF3CAC /* PopupMerchantsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEC5C572CC15C4600CF3CAC /* PopupMerchantsViewController.swift */; }; | 67 | 1EEC5C582CC15C4600CF3CAC /* PopupMerchantsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEC5C572CC15C4600CF3CAC /* PopupMerchantsViewController.swift */; }; |
68 | + 1EFBAB942CC65C9B001DFF75 /* PopupMerchantCategoriesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EFBAB932CC65C9B001DFF75 /* PopupMerchantCategoriesViewController.swift */; }; | ||
68 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */; }; | 69 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */; }; |
69 | A02F34052882B6E60086465F /* TelcoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02F34042882B6E60086465F /* TelcoViewController.swift */; }; | 70 | A02F34052882B6E60086465F /* TelcoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02F34042882B6E60086465F /* TelcoViewController.swift */; }; |
70 | A04D31DE288FF670000E43B5 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A04D31DD288FF670000E43B5 /* HistoryViewController.swift */; }; | 71 | A04D31DE288FF670000E43B5 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A04D31DD288FF670000E43B5 /* HistoryViewController.swift */; }; |
... | @@ -261,6 +262,7 @@ | ... | @@ -261,6 +262,7 @@ |
261 | 1EDD4F882AE937AA00A6B5A6 /* LoyaltyHistoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoyaltyHistoryViewController.swift; sourceTree = "<group>"; }; | 262 | 1EDD4F882AE937AA00A6B5A6 /* LoyaltyHistoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoyaltyHistoryViewController.swift; sourceTree = "<group>"; }; |
262 | 1EE67DA22AE2AF2B0057C8CC /* UnifiedCouponsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnifiedCouponsViewController.swift; sourceTree = "<group>"; }; | 263 | 1EE67DA22AE2AF2B0057C8CC /* UnifiedCouponsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnifiedCouponsViewController.swift; sourceTree = "<group>"; }; |
263 | 1EEC5C572CC15C4600CF3CAC /* PopupMerchantsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PopupMerchantsViewController.swift; sourceTree = "<group>"; }; | 264 | 1EEC5C572CC15C4600CF3CAC /* PopupMerchantsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PopupMerchantsViewController.swift; sourceTree = "<group>"; }; |
265 | + 1EFBAB932CC65C9B001DFF75 /* PopupMerchantCategoriesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PopupMerchantCategoriesViewController.swift; sourceTree = "<group>"; }; | ||
264 | A02F34042882B6E60086465F /* TelcoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TelcoViewController.swift; sourceTree = "<group>"; }; | 266 | A02F34042882B6E60086465F /* TelcoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TelcoViewController.swift; sourceTree = "<group>"; }; |
265 | A04D31DD288FF670000E43B5 /* HistoryViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HistoryViewController.swift; sourceTree = "<group>"; }; | 267 | A04D31DD288FF670000E43B5 /* HistoryViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HistoryViewController.swift; sourceTree = "<group>"; }; |
266 | A079366D2885D07700064122 /* AnalysisChildViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnalysisChildViewController.swift; sourceTree = "<group>"; }; | 268 | A079366D2885D07700064122 /* AnalysisChildViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnalysisChildViewController.swift; sourceTree = "<group>"; }; |
... | @@ -576,6 +578,7 @@ | ... | @@ -576,6 +578,7 @@ |
576 | 1EEC5C572CC15C4600CF3CAC /* PopupMerchantsViewController.swift */, | 578 | 1EEC5C572CC15C4600CF3CAC /* PopupMerchantsViewController.swift */, |
577 | 1E56DF722CC249B300F71882 /* MerchantTableViewCell.swift */, | 579 | 1E56DF722CC249B300F71882 /* MerchantTableViewCell.swift */, |
578 | 1E56DF742CC2620000F71882 /* PopupMerchantsFooterTableViewCell.swift */, | 580 | 1E56DF742CC2620000F71882 /* PopupMerchantsFooterTableViewCell.swift */, |
581 | + 1EFBAB932CC65C9B001DFF75 /* PopupMerchantCategoriesViewController.swift */, | ||
579 | E6A77860282933E40045BBA8 /* MyApi.h */, | 582 | E6A77860282933E40045BBA8 /* MyApi.h */, |
580 | E6A778DC282933E60045BBA8 /* MyApi.m */, | 583 | E6A778DC282933E60045BBA8 /* MyApi.m */, |
581 | E6A77862282933E50045BBA8 /* MyEmptyClass.swift */, | 584 | E6A77862282933E50045BBA8 /* MyEmptyClass.swift */, |
... | @@ -1092,6 +1095,7 @@ | ... | @@ -1092,6 +1095,7 @@ |
1092 | 1E7B9A5829F6ACF400B37E13 /* WalletBannersTableViewCell.swift in Sources */, | 1095 | 1E7B9A5829F6ACF400B37E13 /* WalletBannersTableViewCell.swift in Sources */, |
1093 | E6A778FF282933E60045BBA8 /* WLBeacon.m in Sources */, | 1096 | E6A778FF282933E60045BBA8 /* WLBeacon.m in Sources */, |
1094 | 1E029A4329E0031600CC7447 /* UnifiedCouponBCFooterTableViewCell.swift in Sources */, | 1097 | 1E029A4329E0031600CC7447 /* UnifiedCouponBCFooterTableViewCell.swift in Sources */, |
1098 | + 1EFBAB942CC65C9B001DFF75 /* PopupMerchantCategoriesViewController.swift in Sources */, | ||
1095 | E6A7791A282933E60045BBA8 /* WLAPPActionHandler.m in Sources */, | 1099 | E6A7791A282933E60045BBA8 /* WLAPPActionHandler.m in Sources */, |
1096 | E6A778E1282933E60045BBA8 /* CouponViewController.swift in Sources */, | 1100 | E6A778E1282933E60045BBA8 /* CouponViewController.swift in Sources */, |
1097 | E6A77924282933E70045BBA8 /* NSString+SSToolkitAdditions.m in Sources */, | 1101 | E6A77924282933E70045BBA8 /* NSString+SSToolkitAdditions.m in Sources */, | ... | ... |
No preview for this file type
This diff is collapsed. Click to expand it.
1 | +// | ||
2 | +// PopupMerchantCategoriesViewController.swift | ||
3 | +// SwiftWarplyFramework | ||
4 | +// | ||
5 | +// Created by Manos Chorianopoulos on 21/10/24. | ||
6 | +// | ||
7 | + | ||
8 | +import UIKit | ||
9 | + | ||
10 | +class PopupMerchantCategoriesViewController: UIViewController { | ||
11 | + @IBOutlet weak var popupView: UIView! | ||
12 | + @IBOutlet weak var headerLabel: UILabel! | ||
13 | + @IBOutlet weak var closeButton: UIButton! | ||
14 | + @IBOutlet weak var mapButton: UIButton! | ||
15 | + @IBOutlet weak var eshopsButton: UIButton! | ||
16 | + | ||
17 | + public var headerText: String? = "" | ||
18 | + | ||
19 | + override func viewDidLoad() { | ||
20 | + super.viewDidLoad() | ||
21 | + | ||
22 | + popupView.clipsToBounds = true | ||
23 | + popupView.layer.cornerRadius = 16 | ||
24 | + popupView.layer.maskedCorners = [ .layerMinXMinYCorner, .layerMaxXMinYCorner] // Top left, right corner radius | ||
25 | + | ||
26 | + closeButton.setImage(UIImage(named: "ic_close_3.png", in: MyEmptyClass.resourceBundle(), compatibleWith: nil), for: .normal) | ||
27 | + closeButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5) | ||
28 | + | ||
29 | + headerLabel.text = self.headerText | ||
30 | + headerLabel.font = UIFont(name: "BTCosmo-Bold", size: 18) | ||
31 | + headerLabel.textColor = UIColor(rgb: 0x000000) | ||
32 | + headerLabel.isHidden = true | ||
33 | + | ||
34 | + mapButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 17) | ||
35 | + mapButton.setTitle("Βρες το στα supermarket", for: .normal) | ||
36 | + mapButton.setTitleColor(.white, for: .normal) | ||
37 | + mapButton.backgroundColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00) | ||
38 | + mapButton.layer.cornerRadius = 16.0 | ||
39 | + mapButton.frame = CGRect(x: 0.0, y: 0.0, width: 312, height: 55) | ||
40 | + | ||
41 | + eshopsButton.titleLabel?.font = UIFont(name: "PeridotPE-Bold", size: 17) | ||
42 | + eshopsButton.setTitle("Δώρισέ το", for: .normal) | ||
43 | + eshopsButton.setTitleColor(UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00), for: .normal) | ||
44 | + eshopsButton.layer.cornerRadius = 15.0 | ||
45 | + eshopsButton.frame = CGRect(x: 0.0, y: 0.0, width: 312, height: 55) | ||
46 | + eshopsButton.backgroundColor = .clear | ||
47 | + eshopsButton.layer.borderWidth = 2 | ||
48 | + eshopsButton.layer.borderColor = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00).cgColor | ||
49 | + } | ||
50 | + | ||
51 | + // MARK: - UIButton Actions | ||
52 | + @IBAction func closeButtonAction(_ sender: Any) { | ||
53 | + self.dismiss(animated: true, completion: {}) | ||
54 | + } | ||
55 | + | ||
56 | + @IBAction func mapButtonAction(_ sender: Any) { | ||
57 | + swiftApi().logTrackersEvent("click", "SeeShops") | ||
58 | + | ||
59 | + let vc = SwiftWarplyFramework.MapsViewController(nibName: "MapsViewController", bundle: Bundle(for: MyEmptyClass.self)) | ||
60 | +// vc.couponSet = coupon?.couponset_data | ||
61 | + vc.isMarket = true | ||
62 | + self.navigationController?.pushViewController(vc, animated: true) | ||
63 | + | ||
64 | + } | ||
65 | + | ||
66 | + @IBAction func eshopsButtonAction(_ sender: Any) { | ||
67 | + | ||
68 | + let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | ||
69 | + if let popupVC = storyboard.instantiateViewController(withIdentifier: "PopupMerchantsViewController") as? SwiftWarplyFramework.PopupMerchantsViewController { | ||
70 | + popupVC.modalPresentationStyle = .overCurrentContext | ||
71 | + popupVC.modalTransitionStyle = .crossDissolve | ||
72 | +// popupVC.coupon = coupon | ||
73 | + popupVC.headerText = "Δες τα eshop" | ||
74 | + popupVC.buttonTitle = "Δες το eshop" | ||
75 | +// popupVC.buttonIcon = "shopping_cart" | ||
76 | + popupVC.footerText = "Η διαθεσιμότητα ενδέχεται να διαφέρει ανάλογα με την τοποθεσία." | ||
77 | + | ||
78 | + self.present(popupVC, animated: true, completion: nil) | ||
79 | + } | ||
80 | + } | ||
81 | +} |
... | @@ -160,13 +160,26 @@ import SwiftEventBus | ... | @@ -160,13 +160,26 @@ import SwiftEventBus |
160 | } | 160 | } |
161 | 161 | ||
162 | @IBAction func mapButtonAction(_ sender: Any) { | 162 | @IBAction func mapButtonAction(_ sender: Any) { |
163 | - swiftApi().logTrackersEvent("click", "SeeShops") | 163 | + let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
164 | + if let popupVC = storyboard.instantiateViewController(withIdentifier: "PopupMerchantCategoriesViewController") as? SwiftWarplyFramework.PopupMerchantCategoriesViewController { | ||
165 | + popupVC.modalPresentationStyle = .overCurrentContext | ||
166 | + popupVC.modalTransitionStyle = .crossDissolve | ||
167 | +// popupVC.coupon = coupon | ||
168 | + | ||
169 | + self.present(popupVC, animated: true, completion: nil) | ||
170 | + } | ||
171 | + | ||
172 | + // ======= | ||
173 | + | ||
174 | +// swiftApi().logTrackersEvent("click", "SeeShops") | ||
164 | // | 175 | // |
165 | - let vc = SwiftWarplyFramework.MapsViewController(nibName: "MapsViewController", bundle: Bundle(for: MyEmptyClass.self)) | 176 | +// let vc = SwiftWarplyFramework.MapsViewController(nibName: "MapsViewController", bundle: Bundle(for: MyEmptyClass.self)) |
166 | -// vc.couponSet = coupon?.couponset_data | 177 | +//// vc.couponSet = coupon?.couponset_data |
167 | - vc.isMarket = true | 178 | +// vc.isMarket = true |
168 | - self.navigationController?.pushViewController(vc, animated: true) | 179 | +// self.navigationController?.pushViewController(vc, animated: true) |
169 | 180 | ||
181 | + // ======= | ||
182 | + | ||
170 | // if (mapBtnVisible == true) { | 183 | // if (mapBtnVisible == true) { |
171 | // swiftApi().logTrackersEvent("click", "SeeShops") | 184 | // swiftApi().logTrackersEvent("click", "SeeShops") |
172 | 185 | ... | ... |
-
Please register or login to post a comment