MyCustomViewCell.swift 962 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /*
  9. This cell is used by the example app, as the custom view in
  10. the `CustomActionSheet` example action sheet.
  11. */
  12. import Sheeeeeeeeet
  13. class MyCustomViewCell: ActionSheetItemCell, ActionSheetCustomItemCell {
  14. // MARK: - ActionSheetCustomItemCell
  15. static let nib: UINib = UINib(nibName: "MyCustomViewCell", bundle: nil)
  16. static let defaultSize = CGSize(width: 100, height: 400)
  17. // MARK: - Properties
  18. var buttonTapAction: ((UIButton) -> ())?
  19. // MARK: - Outlets
  20. @IBOutlet weak var leftButton: UIButton!
  21. @IBOutlet weak var centerButton: UIButton!
  22. @IBOutlet weak var rightButton: UIButton!
  23. // MARK: - Actions
  24. @IBAction func buttonTapAction(_ sender: UIButton) {
  25. buttonTapAction?(sender)
  26. }
  27. }