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
id
the identification for the category
category
category name
items
the list under the category
showClearAction
show clear action or not, default is true