You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
690 B

6 years ago
  1. //
  2. // RewardCollectionViewCell.swift
  3. // GMERemittance
  4. //
  5. // Created by Sujal on 3/14/18.
  6. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. protocol RedeemRewardDelegate: class {
  10. func redeemReward(_ sender: RewardCollectionViewCell)
  11. }
  12. class RewardCollectionViewCell: UICollectionViewCell {
  13. @IBOutlet weak var buttonRedeem: UIButton!
  14. @IBOutlet weak var imageViewReward: UIImageView!
  15. @IBOutlet weak var labelRewardName: UILabel!
  16. @IBOutlet weak var labelRewardPoint: UILabel!
  17. weak var delegate: RedeemRewardDelegate?
  18. @IBAction func redeemReward(_ sender: Any) {
  19. delegate?.redeemReward(self)
  20. }
  21. }