Showing
3 changed files
with
0 additions
and
26 deletions
No preview for this file type
| ... | @@ -9,17 +9,10 @@ import UIKit | ... | @@ -9,17 +9,10 @@ import UIKit |
| 9 | 9 | ||
| 10 | protocol MyRewardsBannerOffersScrollTableViewCellDelegate: AnyObject { | 10 | protocol MyRewardsBannerOffersScrollTableViewCellDelegate: AnyObject { |
| 11 | func didSelectBannerOffer(_ index: Int) | 11 | func didSelectBannerOffer(_ index: Int) |
| 12 | -// func didTapProfileButton() | ||
| 13 | } | 12 | } |
| 14 | 13 | ||
| 15 | @objc(MyRewardsBannerOffersScrollTableViewCell) | 14 | @objc(MyRewardsBannerOffersScrollTableViewCell) |
| 16 | public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell { | 15 | public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell { |
| 17 | - @IBOutlet weak var tagView1: UIView! | ||
| 18 | - @IBOutlet weak var tagLabel1: UILabel! | ||
| 19 | - @IBOutlet weak var tagView2: UIView! | ||
| 20 | - @IBOutlet weak var tagLabel2: UILabel! | ||
| 21 | - @IBOutlet weak var profileImage: UIImageView! | ||
| 22 | - @IBOutlet weak var profileButton: UIButton! | ||
| 23 | @IBOutlet weak var collectionView: UICollectionView! | 16 | @IBOutlet weak var collectionView: UICollectionView! |
| 24 | @IBOutlet weak var pageControl: UIPageControl! | 17 | @IBOutlet weak var pageControl: UIPageControl! |
| 25 | 18 | ||
| ... | @@ -30,21 +23,6 @@ public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell { | ... | @@ -30,21 +23,6 @@ public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell { |
| 30 | super.awakeFromNib() | 23 | super.awakeFromNib() |
| 31 | // Initialization code | 24 | // Initialization code |
| 32 | 25 | ||
| 33 | - profileImage.image = UIImage(named: "profile_pic_default", in: Bundle.frameworkResourceBundle, compatibleWith: nil) | ||
| 34 | - | ||
| 35 | - profileButton.addTarget(self, action: #selector(profileButtonTapped), for: .touchUpInside) | ||
| 36 | - | ||
| 37 | - tagView1.backgroundColor = UIColor(rgb: 0x09914E) | ||
| 38 | - tagView1.layer.cornerRadius = 4.0 | ||
| 39 | - tagLabel1.font = UIFont(name: "PingLCG-Regular", size: 17) | ||
| 40 | - tagLabel1.textColor = UIColor(rgb: 0xFFFFFF) | ||
| 41 | - | ||
| 42 | - tagView2.backgroundColor = UIColor(rgb: 0xFC9F25) | ||
| 43 | - tagView2.layer.cornerRadius = 4.0 | ||
| 44 | - tagLabel2.font = UIFont(name: "PingLCG-Regular", size: 17) | ||
| 45 | - tagLabel2.textColor = UIColor(rgb: 0xFFFFFF) | ||
| 46 | - | ||
| 47 | - | ||
| 48 | // Register XIBs for collection view cells | 26 | // Register XIBs for collection view cells |
| 49 | collectionView.register(UINib(nibName: "MyRewardsBannerOfferCollectionViewCell", bundle: Bundle.frameworkBundle), forCellWithReuseIdentifier: "MyRewardsBannerOfferCollectionViewCell") | 27 | collectionView.register(UINib(nibName: "MyRewardsBannerOfferCollectionViewCell", bundle: Bundle.frameworkBundle), forCellWithReuseIdentifier: "MyRewardsBannerOfferCollectionViewCell") |
| 50 | 28 | ||
| ... | @@ -101,10 +79,6 @@ public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell { | ... | @@ -101,10 +79,6 @@ public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell { |
| 101 | self.collectionView.reloadData(); | 79 | self.collectionView.reloadData(); |
| 102 | } | 80 | } |
| 103 | 81 | ||
| 104 | - @objc private func profileButtonTapped() { | ||
| 105 | - // TODO: UNCOMMENT | ||
| 106 | -// delegate?.didTapProfileButton() | ||
| 107 | - } | ||
| 108 | } | 82 | } |
| 109 | 83 | ||
| 110 | extension MyRewardsBannerOffersScrollTableViewCell: UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UIScrollViewDelegate { | 84 | extension MyRewardsBannerOffersScrollTableViewCell: UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UIScrollViewDelegate { | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment