No Description

ActionSheetController.swift 710B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // ActionSheetController.swift
  3. // PaiaiUIKit
  4. //
  5. // Created by FFIB on 2019/1/23.
  6. // Copyright © 2019 FFIB. All rights reserved.
  7. //
  8. import UIKit
  9. public class ActionSheetController: AlertViewController {
  10. public fileprivate(set) var alertView: ActionSheetView
  11. override public var animationView: UIView? {
  12. return alertView
  13. }
  14. public init() {
  15. alertView = .default
  16. super.init(style: .actionSheet)
  17. }
  18. required public init?(coder aDecoder: NSCoder) {
  19. fatalError("init(coder:) has not been implemented")
  20. }
  21. }
  22. public extension ActionSheetController {
  23. func addAlertAction(_ action: AlertAction) {
  24. alertView.addAlertAction(action)
  25. }
  26. }