BlazeWidgetItemBadgeStyle - iOS
The BlazeWidgetItemBadgeStyle struct represents the configuration for the badge of a widget item.
Properties
position
var position: BlazeObjectPositioningThe position of the badge Relative To The Image within the widget item.
This setting enables the badge to be positioned in predefined places like the top-right corner, bottom-left corner, etc., ensuring optimal visibility and aesthetic alignment with the item's layout.
isVisible
var isVisible: BoolA Boolean value that determines whether the badge is visible.
When set to true, the badge is shown; when false, it's hidden. This flexibility allows dynamic UI updates based on user interactions or specific conditions.
Setting it to false will hide the badge for all of the widget item states.
insets
var insets: NSDirectionalEdgeInsets = .zeroAn NSDirectionalEdgeInsets value that defines the insets for the badge related to the widget item container.
Specifies the padding around the badge within its container, providing control over its placement. Insets can be used to adjust the badge's position relative to the widget item's edges, offering finer layout control.
The NSDirectionalEdgeInsets property insets set to .zero means that the padding around the content or element within its container is zero on all sides (top, leading, bottom, and trailing). This effectively means there will be no additional space between the content or element and its container's edges.
liveUnreadState
var liveUnreadState: BlazeWidgetItemBadgeStateStyleThe style configuration for the live unread badge.
liveReadState
var liveReadState: BlazeWidgetItemBadgeStateStyleThe style configuration for the live read badge.
unreadState
var unreadState: BlazeWidgetItemBadgeStateStyleThe style configuration for the unread badge.
readState
var readState: BlazeWidgetItemBadgeStateStyleThe style configuration for the read badge.
Updated 11 days ago
