Manos Chorianopoulos

add WalletActiveCouponsScrollTableViewCell

...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
21 1E2966EA2837A21D00F83FAC /* RSBarcodes_Swift in Frameworks */ = {isa = PBXBuildFile; productRef = 1E2966E92837A21D00F83FAC /* RSBarcodes_Swift */; }; 21 1E2966EA2837A21D00F83FAC /* RSBarcodes_Swift in Frameworks */ = {isa = PBXBuildFile; productRef = 1E2966E92837A21D00F83FAC /* RSBarcodes_Swift */; };
22 1E4195FB2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */; }; 22 1E4195FB2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */; };
23 1E4410B128F5855000859F92 /* CampaignCategory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E4410B028F5855000859F92 /* CampaignCategory.swift */; }; 23 1E4410B128F5855000859F92 /* CampaignCategory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E4410B028F5855000859F92 /* CampaignCategory.swift */; };
24 + 1E46B4BF2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E46B4BE2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift */; };
24 1E479FB329DD948B00C38193 /* WalletBadgesTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E479FB229DD948B00C38193 /* WalletBadgesTableViewCell.swift */; }; 25 1E479FB329DD948B00C38193 /* WalletBadgesTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E479FB229DD948B00C38193 /* WalletBadgesTableViewCell.swift */; };
25 1E51678E2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */; }; 26 1E51678E2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */; };
26 1E64E8FD2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */; }; 27 1E64E8FD2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */; };
...@@ -212,6 +213,7 @@ ...@@ -212,6 +213,7 @@
212 1E15B9A329DDD211000A408D /* MarketHistoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarketHistoryViewController.swift; sourceTree = "<group>"; }; 213 1E15B9A329DDD211000A408D /* MarketHistoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarketHistoryViewController.swift; sourceTree = "<group>"; };
213 1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletActiveCouponsTableViewCell.swift; sourceTree = "<group>"; }; 214 1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletActiveCouponsTableViewCell.swift; sourceTree = "<group>"; };
214 1E4410B028F5855000859F92 /* CampaignCategory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignCategory.swift; sourceTree = "<group>"; }; 215 1E4410B028F5855000859F92 /* CampaignCategory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignCategory.swift; sourceTree = "<group>"; };
216 + 1E46B4BE2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletActiveCouponsScrollTableViewCell.swift; sourceTree = "<group>"; };
215 1E479FB229DD948B00C38193 /* WalletBadgesTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletBadgesTableViewCell.swift; sourceTree = "<group>"; }; 217 1E479FB229DD948B00C38193 /* WalletBadgesTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletBadgesTableViewCell.swift; sourceTree = "<group>"; };
216 1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletVouchersBannerTableViewCell.swift; sourceTree = "<group>"; }; 218 1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletVouchersBannerTableViewCell.swift; sourceTree = "<group>"; };
217 1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletQuestionnaireBannerTableViewCell.swift; sourceTree = "<group>"; }; 219 1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletQuestionnaireBannerTableViewCell.swift; sourceTree = "<group>"; };
...@@ -541,6 +543,7 @@ ...@@ -541,6 +543,7 @@
541 E6A77861282933E50045BBA8 /* Main.storyboard */, 543 E6A77861282933E50045BBA8 /* Main.storyboard */,
542 1E7B9A5729F6ACF400B37E13 /* WalletBannersTableViewCell.swift */, 544 1E7B9A5729F6ACF400B37E13 /* WalletBannersTableViewCell.swift */,
543 1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */, 545 1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */,
546 + 1E46B4BE2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift */,
544 1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */, 547 1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */,
545 1EA04EC02AE7FCE700389A84 /* WalletSpinnerTableViewCell.swift */, 548 1EA04EC02AE7FCE700389A84 /* WalletSpinnerTableViewCell.swift */,
546 1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */, 549 1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */,
...@@ -1058,6 +1061,7 @@ ...@@ -1058,6 +1061,7 @@
1058 1E029A4129E002CF00CC7447 /* UnifiedCouponBCHeaderTableViewCell.swift in Sources */, 1061 1E029A4129E002CF00CC7447 /* UnifiedCouponBCHeaderTableViewCell.swift in Sources */,
1059 1ECA079128D9E3BA00D2BDE0 /* CSMButton.swift in Sources */, 1062 1ECA079128D9E3BA00D2BDE0 /* CSMButton.swift in Sources */,
1060 1E4410B128F5855000859F92 /* CampaignCategory.swift in Sources */, 1063 1E4410B128F5855000859F92 /* CampaignCategory.swift in Sources */,
1064 + 1E46B4BF2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift in Sources */,
1061 E6A7790B282933E60045BBA8 /* WLPushManager.m in Sources */, 1065 E6A7790B282933E60045BBA8 /* WLPushManager.m in Sources */,
1062 1E15B9A229DDCF02000A408D /* MarketSharingHistoryViewController.swift in Sources */, 1066 1E15B9A229DDCF02000A408D /* MarketSharingHistoryViewController.swift in Sources */,
1063 A079366E2885D07700064122 /* AnalysisChildViewController.swift in Sources */, 1067 A079366E2885D07700064122 /* AnalysisChildViewController.swift in Sources */,
......
1 +//
2 +// WalletActiveCouponsScrollTableViewCell.swift
3 +// SwiftWarplyFramework
4 +//
5 +// Created by Manos Chorianopoulos on 8/5/24.
6 +//
7 +
8 +import UIKit
9 +
10 +@objc public class WalletActiveCouponsScrollTableViewCell: UITableViewCell {
11 + @IBOutlet weak var sectionTitleLabel: UILabel!
12 + @IBOutlet weak var historyButtonImage: UIImageView!
13 +
14 + @IBOutlet weak var dfyViewParent: UIView!
15 + @IBOutlet weak var dfyView: UIView!
16 + @IBOutlet weak var dfyImage: UIImageView!
17 + @IBOutlet weak var dfyLabel: UILabel!
18 + @IBOutlet weak var dfyCountView: UIView!
19 + @IBOutlet weak var dfyCountLabel: UILabel!
20 +
21 + @IBOutlet weak var smView: UIView!
22 + @IBOutlet weak var smImage: UIImageView!
23 + @IBOutlet weak var smLabel: UILabel!
24 + @IBOutlet weak var smCountView: UIView!
25 + @IBOutlet weak var smCountLabel: UILabel!
26 +
27 + @IBOutlet weak var gfyView: UIView!
28 + @IBOutlet weak var gfyImage: UIImageView!
29 + @IBOutlet weak var gfyLabel: UILabel!
30 + @IBOutlet weak var gfyCountView: UIView!
31 + @IBOutlet weak var gfyCountLabel: UILabel!
32 +
33 +
34 + public override func awakeFromNib() {
35 + super.awakeFromNib()
36 + // Initialization code
37 +
38 + // Section Header
39 + sectionTitleLabel.text = "Κουπόνια"
40 + historyButtonImage.image = UIImage(named: "wallet_history_blue", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
41 + historyButtonImage.image = historyButtonImage.image?.withRenderingMode(.alwaysTemplate)
42 + historyButtonImage.tintColor = UIColor(red: 0.13, green: 0.13, blue: 0.13, alpha: 1.00)
43 +
44 + // DFY Banner
45 +// dfyViewParent.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00)
46 + dfyViewParent.backgroundColor = .white
47 + dfyViewParent.layer.cornerRadius = 16.0
48 + dfyViewParent.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
49 + dfyViewParent.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
50 + dfyViewParent.layer.shadowOpacity = 1.0
51 + dfyViewParent.layer.shadowRadius = 2.0
52 +
53 +// dfyView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05)
54 + dfyView.backgroundColor = .white
55 + dfyView.layer.cornerRadius = 16.0
56 +
57 + dfyImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
58 +
59 + dfyLabel.text = "DEALS FOR YOU"
60 +
61 + dfyCountView.layer.cornerRadius = 4.0
62 + dfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00)
63 +
64 + // SM Banner
65 +// smView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00)
66 + smView.backgroundColor = .white
67 + smView.layer.cornerRadius = 16.0
68 + smView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
69 + smView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
70 + smView.layer.shadowOpacity = 1.0
71 + smView.layer.shadowRadius = 2.0
72 +
73 + smImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
74 +
75 + smLabel.text = "SUPERMARKET DEALS"
76 +
77 + smCountView.layer.cornerRadius = 4.0
78 + smCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00)
79 +
80 + // GFY Banner
81 +// gfyView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00)
82 + gfyView.backgroundColor = .white
83 + gfyView.layer.cornerRadius = 16.0
84 + gfyView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor
85 + gfyView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
86 + gfyView.layer.shadowOpacity = 1.0
87 + gfyView.layer.shadowRadius = 2.0
88 +
89 + gfyImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
90 +
91 +// gfyLabel.text = "GIFTS FOR YOU"
92 +// gfyLabel.text = "Free coupons"
93 + gfyLabel.text = "FREE COUPONS"
94 +
95 + gfyCountView.layer.cornerRadius = 4.0
96 + gfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00)
97 + }
98 +
99 + public override func setSelected(_ selected: Bool, animated: Bool) {
100 + super.setSelected(selected, animated: animated)
101 +
102 + // Configure the view for the selected state
103 + }
104 +
105 + func configureCell(dfyCount: Int, smCount: Int, gfyCount: Int) {
106 + dfyCountLabel.text = String(dfyCount)
107 + smCountLabel.text = String(smCount)
108 + gfyCountLabel.text = String(gfyCount)
109 + }
110 +
111 +}