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
34 lines
909 B
//
|
|
// HomeCollectionCollectionViewCell.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by gme_2 on 27/09/2018.
|
|
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class HomeCollectionCollectionViewCell: UICollectionViewCell {
|
|
@IBOutlet weak var imageview: UIImageView!
|
|
@IBOutlet weak var titleLabel: UILabel!
|
|
@IBOutlet weak var dragButton: UIImageView!
|
|
|
|
var model: HomeCollectionModel?
|
|
|
|
|
|
func setup() {
|
|
self.imageview.image = model?.icon
|
|
print(model?.title)
|
|
self.titleLabel.text = model?.title
|
|
self.dragButton.isHidden = true
|
|
// self.layer.addShadow(with: <#T##UIColor#>)
|
|
self.layer.shadowColor = UIColor.darkGray.cgColor
|
|
self.layer.shadowOpacity = 0.5
|
|
self.layer.shadowRadius = 2
|
|
let offset = CGSize(width: 2, height: 2)
|
|
self.layer.shadowOffset = offset
|
|
}
|
|
|
|
}
|
|
|
|
|