//
//  ActionSheetController.swift
//  PaiaiUIKit
//
//  Created by FFIB on 2019/1/23.
//  Copyright © 2019 FFIB. All rights reserved.
//

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)
    }
}