FUISideBarItemModel
public protocol FUISideBarItemModel : Hashable, Identifiable
SideBar Item data model which inherit from Identifiable
and Hashable
. It can be used by FUISideBar<Data>
-
A unique identifier UUID for side bar item.
Declaration
Swift
var id: UUID { get }
-
A
String
representing the title of the side bar itemDeclaration
Swift
var title: String { get }
-
An optional
UIImage
that represents the icon of the side bar item and will displayed when the item was NOT selected or in editing mode.Declaration
Swift
var icon: UIImage? { get }
-
An optional
Image
that represents the icon of the side bar item and will displayed when the item was selected.Declaration
Swift
var filledIcon: UIImage? { get }
-
An optional
String
representing the subtitle of the side bar item.Declaration
Swift
var subtitle: String? { get }
-
An optional
UIImage
that represents an accessory icon for the side bar item.Declaration
Swift
var status: UIImage? { get }
-
A
Bool
indicating whether the side bar item is invisible when the SideBar was in view mode.Declaration
Swift
var isInvisible: Bool { get set }
-
An optional array of
FUISideBarItemModel
instances representing the children items of the side bar item.Declaration
Swift
var children: [any FUISideBarItemModel]? { get set }