2 // MenuSupportUsTableViewCell.swift
5 // Created by Pawel Dabrowski on 30/05/2018.
6 // Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved.
11 protocol MenuSupportUsTableViewCellDelegate: class{
13 func menuSupportUsButtonTapped()
16 class MenuSupportUsTableViewCell: WLTableViewCell {
17 weak var delegate: MenuSupportUsTableViewCellDelegate?
18 @IBOutlet weak var button: UIButton!
20 class func instance(delegate: MenuSupportUsTableViewCellDelegate?) -> MenuSupportUsTableViewCell{
21 let cell = MenuSupportUsTableViewCell.instance(type: MenuSupportUsTableViewCell.self)
22 cell.delegate = delegate
26 override func awakeFromNib() {
28 button.layer.cornerRadius = 15
29 button.text = "support_us".localized.uppercased()
30 backgroundColor = UIColor.clear
31 contentView.backgroundColor = UIColor.clear
34 override func setSelected(_ selected: Bool, animated: Bool) {
35 super.setSelected(selected, animated: animated)
37 // Configure the view for the selected state
40 @IBAction func buttonAction(_ sender: Any) {
41 delegate?.menuSupportUsButtonTapped()
44 override func getHeight() -> CGFloat {