// // AlertAction.swift // PaiaiUIKit // // Created by ffib on 2019/1/22. // Copyright © 2019 yb. All rights reserved. // import Foundation public struct AlertAction { public enum Style { case `default` case cancel case custom(AlertItem) } public private(set) var title: String public private(set) var style: Style public private(set) var handler: ((AlertItem) -> Void)? public init(title: String, style: Style = .default, handler: ((AlertItem) -> Void)? = nil) { self.style = style self.title = title self.handler = handler } }