Showing
11 changed files
with
102 additions
and
22 deletions
No preview for this file type
... | @@ -695,10 +695,11 @@ var timer2: DispatchSourceTimer? | ... | @@ -695,10 +695,11 @@ var timer2: DispatchSourceTimer? |
695 | } else if (eventArray[1] == "loyaltyWallet") { | 695 | } else if (eventArray[1] == "loyaltyWallet") { |
696 | // event:loyaltyWallet | 696 | // event:loyaltyWallet |
697 | SwiftEventBus.post("refresh_vouchers") | 697 | SwiftEventBus.post("refresh_vouchers") |
698 | + SwiftEventBus.post("open_my_rewards") | ||
698 | 699 | ||
699 | - let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 700 | + // let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
700 | - let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController | 701 | + // let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController |
701 | - self.navigationController?.pushViewController(vc, animated: true) | 702 | + // self.navigationController?.pushViewController(vc, animated: true) |
702 | 703 | ||
703 | } else if (eventArray[1] == "cancel_unified_success") { | 704 | } else if (eventArray[1] == "cancel_unified_success") { |
704 | // event:cancel_unified_success | 705 | // event:cancel_unified_success | ... | ... |
... | @@ -26,7 +26,8 @@ import SwiftEventBus | ... | @@ -26,7 +26,8 @@ import SwiftEventBus |
26 | getCouponsRequest() | 26 | getCouponsRequest() |
27 | 27 | ||
28 | setBackButton() | 28 | setBackButton() |
29 | - setNavigationTitle("GIFTS FOR YOU") | 29 | +// setNavigationTitle("GIFTS FOR YOU") |
30 | + setNavigationTitle("FREE COUPONS") | ||
30 | 31 | ||
31 | // backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 32 | // backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
32 | 33 | ... | ... |
... | @@ -74,7 +74,8 @@ import SwiftEventBus | ... | @@ -74,7 +74,8 @@ import SwiftEventBus |
74 | } | 74 | } |
75 | } | 75 | } |
76 | 76 | ||
77 | - setBackButton() | 77 | +// setBackButton() |
78 | + setBackButton("ic_close_3") | ||
78 | setNavigationTitle("Ιστορικό") | 79 | setNavigationTitle("Ιστορικό") |
79 | 80 | ||
80 | // === images === // | 81 | // === images === // |
... | @@ -95,7 +96,7 @@ import SwiftEventBus | ... | @@ -95,7 +96,7 @@ import SwiftEventBus |
95 | historySectionView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | 96 | historySectionView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor |
96 | historySectionView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | 97 | historySectionView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) |
97 | historySectionView.layer.shadowOpacity = 1.0 | 98 | historySectionView.layer.shadowOpacity = 1.0 |
98 | - historySectionView.layer.shadowRadius = 1.0 | 99 | + historySectionView.layer.shadowRadius = 2.0 |
99 | 100 | ||
100 | } | 101 | } |
101 | 102 | ||
... | @@ -205,7 +206,8 @@ import SwiftEventBus | ... | @@ -205,7 +206,8 @@ import SwiftEventBus |
205 | 206 | ||
206 | dfyBannerParentView.backgroundColor = .clear | 207 | dfyBannerParentView.backgroundColor = .clear |
207 | dfyBannerInnerParentView.backgroundColor = .white | 208 | dfyBannerInnerParentView.backgroundColor = .white |
208 | - dfyBannerInnerView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05) | 209 | +// dfyBannerInnerView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05) |
210 | + dfyBannerInnerView.backgroundColor = .white | ||
209 | dfyBannerInnerParentView.layer.cornerRadius = 16.0 | 211 | dfyBannerInnerParentView.layer.cornerRadius = 16.0 |
210 | dfyBannerInnerView.layer.cornerRadius = 16.0 | 212 | dfyBannerInnerView.layer.cornerRadius = 16.0 |
211 | // dfyBannerInnerView.layer.borderWidth = 1 | 213 | // dfyBannerInnerView.layer.borderWidth = 1 |
... | @@ -214,7 +216,7 @@ import SwiftEventBus | ... | @@ -214,7 +216,7 @@ import SwiftEventBus |
214 | dfyBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | 216 | dfyBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor |
215 | dfyBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | 217 | dfyBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) |
216 | dfyBannerParentView.layer.shadowOpacity = 1.0 | 218 | dfyBannerParentView.layer.shadowOpacity = 1.0 |
217 | - dfyBannerParentView.layer.shadowRadius = 1.0 | 219 | + dfyBannerParentView.layer.shadowRadius = 2.0 |
218 | 220 | ||
219 | let totalCouponValueFixed = Float(round(100 * totalCouponValue) / 100) | 221 | let totalCouponValueFixed = Float(round(100 * totalCouponValue) / 100) |
220 | var totalCouponValueString = "0" | 222 | var totalCouponValueString = "0" |
... | @@ -236,7 +238,8 @@ import SwiftEventBus | ... | @@ -236,7 +238,8 @@ import SwiftEventBus |
236 | // === MARKET banner === // | 238 | // === MARKET banner === // |
237 | 239 | ||
238 | marketBannerParentView.backgroundColor = .clear | 240 | marketBannerParentView.backgroundColor = .clear |
239 | - marketBannerInnerView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00) | 241 | +// marketBannerInnerView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00) |
242 | + marketBannerInnerView.backgroundColor = .white | ||
240 | marketBannerInnerView.layer.cornerRadius = 16.0 | 243 | marketBannerInnerView.layer.cornerRadius = 16.0 |
241 | // marketBannerInnerView.layer.borderWidth = 1 | 244 | // marketBannerInnerView.layer.borderWidth = 1 |
242 | // marketBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor | 245 | // marketBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor |
... | @@ -244,7 +247,7 @@ import SwiftEventBus | ... | @@ -244,7 +247,7 @@ import SwiftEventBus |
244 | marketBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | 247 | marketBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor |
245 | marketBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | 248 | marketBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) |
246 | marketBannerParentView.layer.shadowOpacity = 1.0 | 249 | marketBannerParentView.layer.shadowOpacity = 1.0 |
247 | - marketBannerParentView.layer.shadowRadius = 1.0 | 250 | + marketBannerParentView.layer.shadowRadius = 2.0 |
248 | 251 | ||
249 | let marketDiscount = Float(round(100 * unifiedCouponsDiscount) / 100) | 252 | let marketDiscount = Float(round(100 * unifiedCouponsDiscount) / 100) |
250 | var marketDiscountString = "0" | 253 | var marketDiscountString = "0" |
... | @@ -267,7 +270,8 @@ import SwiftEventBus | ... | @@ -267,7 +270,8 @@ import SwiftEventBus |
267 | // === GFY banner === // | 270 | // === GFY banner === // |
268 | 271 | ||
269 | gfyBannerParentView.backgroundColor = .clear | 272 | gfyBannerParentView.backgroundColor = .clear |
270 | - gfyBannerInnerView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00) | 273 | +// gfyBannerInnerView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00) |
274 | + gfyBannerInnerView.backgroundColor = .white | ||
271 | gfyBannerInnerView.layer.cornerRadius = 16.0 | 275 | gfyBannerInnerView.layer.cornerRadius = 16.0 |
272 | // gfyBannerInnerView.layer.borderWidth = 1 | 276 | // gfyBannerInnerView.layer.borderWidth = 1 |
273 | // gfyBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor | 277 | // gfyBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor |
... | @@ -275,7 +279,7 @@ import SwiftEventBus | ... | @@ -275,7 +279,7 @@ import SwiftEventBus |
275 | gfyBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | 279 | gfyBannerParentView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor |
276 | gfyBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | 280 | gfyBannerParentView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) |
277 | gfyBannerParentView.layer.shadowOpacity = 1.0 | 281 | gfyBannerParentView.layer.shadowOpacity = 1.0 |
278 | - gfyBannerParentView.layer.shadowRadius = 1.0 | 282 | + gfyBannerParentView.layer.shadowRadius = 2.0 |
279 | 283 | ||
280 | var totalCouponDiscountString = "0" | 284 | var totalCouponDiscountString = "0" |
281 | totalCouponDiscountString = String(format: "%.2f", totalCouponDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil) | 285 | totalCouponDiscountString = String(format: "%.2f", totalCouponDiscount).replacingOccurrences(of: ".", with: ",", options: .literal, range: nil) |
... | @@ -283,7 +287,8 @@ import SwiftEventBus | ... | @@ -283,7 +287,8 @@ import SwiftEventBus |
283 | 287 | ||
284 | let gfyNormalText1 = "Μέχρι τώρα έχεις όφελος " | 288 | let gfyNormalText1 = "Μέχρι τώρα έχεις όφελος " |
285 | let gfyBoldText = totalCouponDiscountString + "€" | 289 | let gfyBoldText = totalCouponDiscountString + "€" |
286 | - let gfyNormalText2 = " από τα GIFTS FOR YOU" | 290 | + let gfyNormalText2 = " από τα FREE COUPONS" |
291 | +// let gfyNormalText2 = " από τα GIFTS FOR YOU" | ||
287 | 292 | ||
288 | let gfyAttributedString = NSMutableAttributedString(string:gfyNormalText1, attributes:attrRegular) | 293 | let gfyAttributedString = NSMutableAttributedString(string:gfyNormalText1, attributes:attrRegular) |
289 | let gfyBoldString = NSMutableAttributedString(string: gfyBoldText, attributes:attrBold) | 294 | let gfyBoldString = NSMutableAttributedString(string: gfyBoldText, attributes:attrBold) | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -33,14 +33,16 @@ import UIKit | ... | @@ -33,14 +33,16 @@ import UIKit |
33 | // Initialization code | 33 | // Initialization code |
34 | 34 | ||
35 | // DFY Banner | 35 | // DFY Banner |
36 | - dfyViewParent.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00) | 36 | +// dfyViewParent.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00) |
37 | + dfyViewParent.backgroundColor = .white | ||
37 | dfyViewParent.layer.cornerRadius = 16.0 | 38 | dfyViewParent.layer.cornerRadius = 16.0 |
38 | dfyViewParent.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | 39 | dfyViewParent.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor |
39 | dfyViewParent.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | 40 | dfyViewParent.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) |
40 | dfyViewParent.layer.shadowOpacity = 1.0 | 41 | dfyViewParent.layer.shadowOpacity = 1.0 |
41 | - dfyViewParent.layer.shadowRadius = 1.0 | 42 | + dfyViewParent.layer.shadowRadius = 2.0 |
42 | 43 | ||
43 | - dfyView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05) | 44 | +// dfyView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05) |
45 | + dfyView.backgroundColor = .white | ||
44 | dfyView.layer.cornerRadius = 16.0 | 46 | dfyView.layer.cornerRadius = 16.0 |
45 | 47 | ||
46 | dfyImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 48 | dfyImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
... | @@ -51,12 +53,13 @@ import UIKit | ... | @@ -51,12 +53,13 @@ import UIKit |
51 | dfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) | 53 | dfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) |
52 | 54 | ||
53 | // SM Banner | 55 | // SM Banner |
54 | - smView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00) | 56 | +// smView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00) |
57 | + smView.backgroundColor = .white | ||
55 | smView.layer.cornerRadius = 16.0 | 58 | smView.layer.cornerRadius = 16.0 |
56 | smView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | 59 | smView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor |
57 | smView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | 60 | smView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) |
58 | smView.layer.shadowOpacity = 1.0 | 61 | smView.layer.shadowOpacity = 1.0 |
59 | - smView.layer.shadowRadius = 1.0 | 62 | + smView.layer.shadowRadius = 2.0 |
60 | 63 | ||
61 | smImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 64 | smImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
62 | 65 | ||
... | @@ -66,16 +69,19 @@ import UIKit | ... | @@ -66,16 +69,19 @@ import UIKit |
66 | smCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) | 69 | smCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) |
67 | 70 | ||
68 | // GFY Banner | 71 | // GFY Banner |
69 | - gfyView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00) | 72 | +// gfyView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00) |
73 | + gfyView.backgroundColor = .white | ||
70 | gfyView.layer.cornerRadius = 16.0 | 74 | gfyView.layer.cornerRadius = 16.0 |
71 | gfyView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | 75 | gfyView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor |
72 | gfyView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | 76 | gfyView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) |
73 | gfyView.layer.shadowOpacity = 1.0 | 77 | gfyView.layer.shadowOpacity = 1.0 |
74 | - gfyView.layer.shadowRadius = 1.0 | 78 | + gfyView.layer.shadowRadius = 2.0 |
75 | 79 | ||
76 | gfyImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 80 | gfyImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
77 | 81 | ||
78 | - gfyLabel.text = "GIFTS FOR YOU" | 82 | +// gfyLabel.text = "GIFTS FOR YOU" |
83 | +// gfyLabel.text = "Free coupons" | ||
84 | + gfyLabel.text = "FREE COUPONS" | ||
79 | 85 | ||
80 | gfyCountView.layer.cornerRadius = 4.0 | 86 | gfyCountView.layer.cornerRadius = 4.0 |
81 | gfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) | 87 | gfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) | ... | ... |
... | @@ -8,10 +8,17 @@ | ... | @@ -8,10 +8,17 @@ |
8 | import UIKit | 8 | import UIKit |
9 | 9 | ||
10 | @objc public class WalletEmptyViewTableViewCell: UITableViewCell { | 10 | @objc public class WalletEmptyViewTableViewCell: UITableViewCell { |
11 | + @IBOutlet weak var emptyImage: UIImageView! | ||
12 | + @IBOutlet weak var emptyLabel: UILabel! | ||
11 | 13 | ||
12 | public override func awakeFromNib() { | 14 | public override func awakeFromNib() { |
13 | super.awakeFromNib() | 15 | super.awakeFromNib() |
14 | // Initialization code | 16 | // Initialization code |
17 | + | ||
18 | + emptyImage.image = UIImage(named: "ic_empty_wallet_3", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
19 | +// emptyLabel.text = "Δεν έχεις κάποιον ενεργό κωδικό ή κουπόνι! Μπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές!" | ||
20 | + emptyLabel.text = "Δεν έχεις ενεργό κωδικό ή κουπόνι!\nΜπες τώρα στην ενότητα COSMOTE For You και βρες αποκλειστικές προσφορές" | ||
21 | + | ||
15 | } | 22 | } |
16 | 23 | ||
17 | public override func setSelected(_ selected: Bool, animated: Bool) { | 24 | public override func setSelected(_ selected: Bool, animated: Bool) { | ... | ... |
... | @@ -8,10 +8,31 @@ | ... | @@ -8,10 +8,31 @@ |
8 | import UIKit | 8 | import UIKit |
9 | 9 | ||
10 | @objc public class WalletHistoryBannerTableViewCell: UITableViewCell { | 10 | @objc public class WalletHistoryBannerTableViewCell: UITableViewCell { |
11 | + @IBOutlet weak var bannerView: UIView! | ||
12 | + @IBOutlet weak var bannerIconImage: UIImageView! | ||
13 | + @IBOutlet weak var bannerLabel: UILabel! | ||
14 | + @IBOutlet weak var bannerArrowImage: UIImageView! | ||
15 | + | ||
16 | + let language = swiftApi().getLanguage() | ||
11 | 17 | ||
12 | public override func awakeFromNib() { | 18 | public override func awakeFromNib() { |
13 | super.awakeFromNib() | 19 | super.awakeFromNib() |
14 | // Initialization code | 20 | // Initialization code |
21 | + | ||
22 | + bannerView.layer.cornerRadius = 16.0 | ||
23 | + bannerView.layer.borderWidth = 1 | ||
24 | + bannerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor | ||
25 | + | ||
26 | + // Add shadow | ||
27 | + bannerView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | ||
28 | + bannerView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | ||
29 | + bannerView.layer.shadowOpacity = 1.0 | ||
30 | + bannerView.layer.shadowRadius = 1.0 | ||
31 | + | ||
32 | + bannerIconImage.image = UIImage(named: "wallet_history_blue", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
33 | + bannerArrowImage.image = UIImage(named: "arrow_right_black", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
34 | + | ||
35 | + bannerLabel.text = "Δες το ιστορικό σου" | ||
15 | } | 36 | } |
16 | 37 | ||
17 | public override func setSelected(_ selected: Bool, animated: Bool) { | 38 | public override func setSelected(_ selected: Bool, animated: Bool) { | ... | ... |
... | @@ -8,10 +8,29 @@ | ... | @@ -8,10 +8,29 @@ |
8 | import UIKit | 8 | import UIKit |
9 | 9 | ||
10 | @objc public class WalletQuestionnaireBannerTableViewCell: UITableViewCell { | 10 | @objc public class WalletQuestionnaireBannerTableViewCell: UITableViewCell { |
11 | + @IBOutlet weak var bannerView: UIView! | ||
12 | + @IBOutlet weak var bannerIconImage: UIImageView! | ||
13 | + @IBOutlet weak var bannerIconImageWidth: NSLayoutConstraint! | ||
14 | + @IBOutlet weak var bannerLabel: UILabel! | ||
15 | + @IBOutlet weak var bannerLabelLeftSpace: NSLayoutConstraint! | ||
16 | + @IBOutlet weak var bannerArrowImage: UIImageView! | ||
11 | 17 | ||
12 | public override func awakeFromNib() { | 18 | public override func awakeFromNib() { |
13 | super.awakeFromNib() | 19 | super.awakeFromNib() |
14 | // Initialization code | 20 | // Initialization code |
21 | + | ||
22 | + bannerView.layer.cornerRadius = 16.0 | ||
23 | + bannerView.layer.borderWidth = 1 | ||
24 | + bannerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor | ||
25 | + | ||
26 | + // Add shadow | ||
27 | + bannerView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | ||
28 | + bannerView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | ||
29 | + bannerView.layer.shadowOpacity = 1.0 | ||
30 | + bannerView.layer.shadowRadius = 1.0 | ||
31 | + | ||
32 | + bannerIconImage.image = UIImage(named: "wallet_plus_blue", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
33 | + bannerArrowImage.image = UIImage(named: "arrow_right_black", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
15 | } | 34 | } |
16 | 35 | ||
17 | public override func setSelected(_ selected: Bool, animated: Bool) { | 36 | public override func setSelected(_ selected: Bool, animated: Bool) { |
... | @@ -20,4 +39,23 @@ import UIKit | ... | @@ -20,4 +39,23 @@ import UIKit |
20 | // Configure the view for the selected state | 39 | // Configure the view for the selected state |
21 | } | 40 | } |
22 | 41 | ||
42 | + func configureCell() { | ||
43 | + let userTag = swiftApi().getUserTag() | ||
44 | +// print("User tag: " + userTag) | ||
45 | + if (userTag != "" && userTag != "undefined") { | ||
46 | + bannerLabel.text = userTag | ||
47 | + bannerLabel.frame.size.width = bannerLabel.intrinsicContentSize.width | ||
48 | + bannerIconImage.isHidden = true | ||
49 | + bannerIconImageWidth.constant = CGFloat(0.0) | ||
50 | + bannerLabelLeftSpace.constant = CGFloat(0.0) | ||
51 | + | ||
52 | + } else { | ||
53 | + bannerLabel.text = "Πρόσθεσε τις προτιμήσεις σου" | ||
54 | + bannerLabel.frame.size.width = bannerLabel.intrinsicContentSize.width | ||
55 | + bannerIconImage.isHidden = false | ||
56 | + bannerIconImageWidth.constant = CGFloat(22.0) | ||
57 | + bannerLabelLeftSpace.constant = CGFloat(10.0) | ||
58 | + } | ||
59 | + } | ||
60 | + | ||
23 | } | 61 | } | ... | ... |
... | @@ -14,7 +14,8 @@ import UIKit | ... | @@ -14,7 +14,8 @@ import UIKit |
14 | super.awakeFromNib() | 14 | super.awakeFromNib() |
15 | // Initialization code | 15 | // Initialization code |
16 | 16 | ||
17 | - spinner.color = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00) | 17 | +// spinner.color = UIColor(red: 0.05, green: 0.65, blue: 0.00, alpha: 1.00) |
18 | + spinner.color = UIColor(red: 0.00, green: 0.65, blue: 0.89, alpha: 1.00) | ||
18 | 19 | ||
19 | spinner.translatesAutoresizingMaskIntoConstraints = false | 20 | spinner.translatesAutoresizingMaskIntoConstraints = false |
20 | spinner.startAnimating() | 21 | spinner.startAnimating() | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment