123456789101112131415161718192021222324252627282930313233 |
- import UIKit
- public class ActionSheetController: AlertViewController {
-
- public fileprivate(set) var alertView: ActionSheetView
- override public var animationView: UIView? {
- return alertView
- }
-
- public init() {
- alertView = .default
- super.init(style: .actionSheet)
- }
-
- required public init?(coder aDecoder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
- }
- public extension ActionSheetController {
- func addAlertAction(_ action: AlertAction) {
- alertView.addAlertAction(action)
- }
- }
|