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