BannerMessageListModel
public class BannerMessageListModel : Identifiable, Equatable, ObservableObject
Undocumented
-
Declaration
Swift
public static func == (lhs: BannerMessageListModel, rhs: BannerMessageListModel) -> Bool -
Declaration
Swift
public var id: UUID -
customized category, like “Errors”, “Warnings”, “Information”, etc
Declaration
Swift
public let category: String -
Show clear action or not, default is true
Declaration
Swift
public let showClearAction: Bool -
Undocumented
Declaration
Swift
@Published public var items: [BannerMessageItemModel] { get set } -
Public initializer for BannerMessageListModel
Declaration
Swift
public init(id: UUID = UUID(), category: String, items: [BannerMessageItemModel], showClearAction: Bool = true)Parameters
idthe identification for the category
categorycategory name
itemsthe list under the category
showClearActionshow clear action or not, default is true