vds_ios/VDS/Components/Notification/NotificationButtonModel.swift
Matt Bruce ba8e557cd0 updated didset
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-08-30 18:04:46 -05:00

27 lines
631 B
Swift

//
// NotificationButtonModel.swift
// VDS
//
// Created by Nadigadda, Sumanth on 24/03/23.
//
import Foundation
extension Notification {
public struct ButtonModel: Equatable, Identifiable {
public static func == (lhs: ButtonModel, rhs: ButtonModel) -> Bool {
lhs.id == rhs.id
}
public var id: String = UUID().uuidString
public var text: String
public var onClick: (Button) -> ()
public init(text: String, onClick: @escaping (Button) -> Void) {
self.text = text
self.onClick = onClick
}
}
}