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.

34 lines
909 B

  1. //
  2. // HomeCollectionCollectionViewCell.swift
  3. // GMERemittance
  4. //
  5. // Created by gme_2 on 27/09/2018.
  6. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class HomeCollectionCollectionViewCell: UICollectionViewCell {
  10. @IBOutlet weak var imageview: UIImageView!
  11. @IBOutlet weak var titleLabel: UILabel!
  12. @IBOutlet weak var dragButton: UIImageView!
  13. var model: HomeCollectionModel?
  14. func setup() {
  15. self.imageview.image = model?.icon
  16. print(model?.title)
  17. self.titleLabel.text = model?.title
  18. self.dragButton.isHidden = true
  19. // self.layer.addShadow(with: <#T##UIColor#>)
  20. self.layer.shadowColor = UIColor.darkGray.cgColor
  21. self.layer.shadowOpacity = 0.5
  22. self.layer.shadowRadius = 2
  23. let offset = CGSize(width: 2, height: 2)
  24. self.layer.shadowOffset = offset
  25. }
  26. }