MyCustomViewCell.swift 842 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // MyCustomViewCell.swift
  3. // SheeeeeeeeetExample
  4. //
  5. // Created by Daniel Saidi on 2018-10-08.
  6. // Copyright © 2018 Daniel Saidi. All rights reserved.
  7. //
  8. import Sheeeeeeeeet
  9. class MyCustomViewCell: ActionSheetItemCell, ActionSheetCustomItemCell {
  10. // MARK: - ActionSheetCustomItemCell
  11. static let nib: UINib = UINib(nibName: "MyCustomViewCell", bundle: nil)
  12. static let defaultSize = CGSize(width: 100, height: 400)
  13. // MARK: - Properties
  14. var buttonTapAction: ((UIButton) -> ())?
  15. // MARK: - Outlets
  16. @IBOutlet weak var leftButton: UIButton!
  17. @IBOutlet weak var centerButton: UIButton!
  18. @IBOutlet weak var rightButton: UIButton!
  19. // MARK: - Actions
  20. @IBAction func buttonTapAction(_ sender: UIButton) {
  21. buttonTapAction?(sender)
  22. }
  23. }