Showing
7 changed files
with
99 additions
and
4 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,10 +8,77 @@ | ... | @@ -8,10 +8,77 @@ |
| 8 | import UIKit | 8 | import UIKit |
| 9 | 9 | ||
| 10 | @objc public class WalletActiveCouponsTableViewCell: UITableViewCell { | 10 | @objc public class WalletActiveCouponsTableViewCell: UITableViewCell { |
| 11 | - | 11 | + @IBOutlet weak var dfyViewParent: UIView! |
| 12 | + @IBOutlet weak var dfyView: UIView! | ||
| 13 | + @IBOutlet weak var dfyImage: UIImageView! | ||
| 14 | + @IBOutlet weak var dfyLabel: UILabel! | ||
| 15 | + @IBOutlet weak var dfyCountView: UIView! | ||
| 16 | + @IBOutlet weak var dfyCountLabel: UILabel! | ||
| 17 | + | ||
| 18 | + @IBOutlet weak var smView: UIView! | ||
| 19 | + @IBOutlet weak var smImage: UIImageView! | ||
| 20 | + @IBOutlet weak var smLabel: UILabel! | ||
| 21 | + @IBOutlet weak var smCountView: UIView! | ||
| 22 | + @IBOutlet weak var smCountLabel: UILabel! | ||
| 23 | + | ||
| 24 | + @IBOutlet weak var gfyView: UIView! | ||
| 25 | + @IBOutlet weak var gfyImage: UIImageView! | ||
| 26 | + @IBOutlet weak var gfyLabel: UILabel! | ||
| 27 | + @IBOutlet weak var gfyCountView: UIView! | ||
| 28 | + @IBOutlet weak var gfyCountLabel: UILabel! | ||
| 29 | + | ||
| 30 | + | ||
| 12 | public override func awakeFromNib() { | 31 | public override func awakeFromNib() { |
| 13 | super.awakeFromNib() | 32 | super.awakeFromNib() |
| 14 | // Initialization code | 33 | // Initialization code |
| 34 | + | ||
| 35 | + // DFY Banner | ||
| 36 | + dfyViewParent.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00) | ||
| 37 | + 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.shadowOffset = CGSize(width: 0.0, height: 1.0) | ||
| 40 | + dfyViewParent.layer.shadowOpacity = 1.0 | ||
| 41 | + dfyViewParent.layer.shadowRadius = 1.0 | ||
| 42 | + | ||
| 43 | + dfyView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05) | ||
| 44 | + dfyView.layer.cornerRadius = 16.0 | ||
| 45 | + | ||
| 46 | + dfyImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
| 47 | + | ||
| 48 | + dfyLabel.text = "DEALS FOR YOU" | ||
| 49 | + | ||
| 50 | + dfyCountView.layer.cornerRadius = 4.0 | ||
| 51 | + dfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) | ||
| 52 | + | ||
| 53 | + // SM Banner | ||
| 54 | + smView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00) | ||
| 55 | + smView.layer.cornerRadius = 16.0 | ||
| 56 | + 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) | ||
| 58 | + smView.layer.shadowOpacity = 1.0 | ||
| 59 | + smView.layer.shadowRadius = 1.0 | ||
| 60 | + | ||
| 61 | + smImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
| 62 | + | ||
| 63 | + smLabel.text = "SUPERMARKET DEALS" | ||
| 64 | + | ||
| 65 | + smCountView.layer.cornerRadius = 4.0 | ||
| 66 | + smCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) | ||
| 67 | + | ||
| 68 | + // GFY Banner | ||
| 69 | + gfyView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00) | ||
| 70 | + gfyView.layer.cornerRadius = 16.0 | ||
| 71 | + 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) | ||
| 73 | + gfyView.layer.shadowOpacity = 1.0 | ||
| 74 | + gfyView.layer.shadowRadius = 1.0 | ||
| 75 | + | ||
| 76 | + gfyImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
| 77 | + | ||
| 78 | + gfyLabel.text = "GIFTS FOR YOU" | ||
| 79 | + | ||
| 80 | + gfyCountView.layer.cornerRadius = 4.0 | ||
| 81 | + gfyCountView.backgroundColor = UIColor(red: 0.92, green: 0.75, blue: 0.41, alpha: 1.00) | ||
| 15 | } | 82 | } |
| 16 | 83 | ||
| 17 | public override func setSelected(_ selected: Bool, animated: Bool) { | 84 | public override func setSelected(_ selected: Bool, animated: Bool) { |
| ... | @@ -19,5 +86,11 @@ import UIKit | ... | @@ -19,5 +86,11 @@ import UIKit |
| 19 | 86 | ||
| 20 | // Configure the view for the selected state | 87 | // Configure the view for the selected state |
| 21 | } | 88 | } |
| 89 | + | ||
| 90 | + func configureCell(dfyCount: Int, smCount: Int, gfyCount: Int) { | ||
| 91 | + dfyCountLabel.text = String(dfyCount) | ||
| 92 | + smCountLabel.text = String(smCount) | ||
| 93 | + gfyCountLabel.text = String(gfyCount) | ||
| 94 | + } | ||
| 22 | 95 | ||
| 23 | } | 96 | } | ... | ... |
This diff is collapsed. Click to expand it.
| ... | @@ -8,10 +8,32 @@ | ... | @@ -8,10 +8,32 @@ |
| 8 | import UIKit | 8 | import UIKit |
| 9 | 9 | ||
| 10 | @objc public class WalletVouchersBannerTableViewCell: UITableViewCell { | 10 | @objc public class WalletVouchersBannerTableViewCell: UITableViewCell { |
| 11 | - | 11 | + @IBOutlet weak var sectionTitleLabel: UILabel! |
| 12 | + @IBOutlet weak var voucherBannerView: UIView! | ||
| 13 | + @IBOutlet weak var voucherBannerIconImage: UIImageView! | ||
| 14 | + @IBOutlet weak var voucherBannerLabel: UILabel! | ||
| 15 | + @IBOutlet weak var voucherBannerArrowImage: UIImageView! | ||
| 16 | + | ||
| 12 | public override func awakeFromNib() { | 17 | public override func awakeFromNib() { |
| 13 | super.awakeFromNib() | 18 | super.awakeFromNib() |
| 14 | // Initialization code | 19 | // Initialization code |
| 20 | + | ||
| 21 | + sectionTitleLabel.text = "Υπόλοιπο επιδότησης" | ||
| 22 | + | ||
| 23 | + voucherBannerView.layer.cornerRadius = 16.0 | ||
| 24 | + voucherBannerView.layer.borderWidth = 1 | ||
| 25 | + voucherBannerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor | ||
| 26 | + | ||
| 27 | + // Add shadow | ||
| 28 | + voucherBannerView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.2).cgColor | ||
| 29 | + voucherBannerView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0) | ||
| 30 | + voucherBannerView.layer.shadowOpacity = 1.0 | ||
| 31 | + voucherBannerView.layer.shadowRadius = 1.0 | ||
| 32 | + | ||
| 33 | + voucherBannerIconImage.image = UIImage(named: "wallet_voucher", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
| 34 | + voucherBannerArrowImage.image = UIImage(named: "arrow_right_black", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
| 35 | + | ||
| 36 | + voucherBannerLabel.text = "Ενημερώσου για το υπόλοιπο επιδότησης" | ||
| 15 | } | 37 | } |
| 16 | 38 | ||
| 17 | public override func setSelected(_ selected: Bool, animated: Bool) { | 39 | public override func setSelected(_ selected: Bool, animated: Bool) { | ... | ... |
-
Please register or login to post a comment