GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemStyleOverrides - iOS

BlazeWidgetItemStyleOverrides is a structure used to define custom style overrides for a specific item within a Blaze widget. It allows customization of various visual aspects of an item.

Properties

statusIndicator

var statusIndicator: BlazeWidgetItemStatusIndicatorStyle?

An optional BlazeWidgetItemStatusIndicatorStyle used to override the default style of the item's status indicator. If nil, the default style is applied.

imageBorder

var imageBorder: BlazeWidgetItemImageContainerBorderStyle?

An optional BlazeWidgetItemImageContainerBorderStyle used to override the default border appearance around the item's image. If nil, the default style is applied.

badge

var badge: BlazeWidgetItemBadgeStyle?

An optional BlazeWidgetItemBadgeStyle used to override the default appearance of the item's badge. If nil, the default style is applied.

Initialization:

init(statusIndicator: BlazeWidgetItemStatusIndicatorStyle? = nil,
     imageBorder: BlazeWidgetItemImageContainerBorderStyle? = nil,
     badge: BlazeWidgetItemBadgeStyle? = nil) {
        self.statusIndicator = statusIndicator
        self.imageBorder = imageBorder
        self.badge = badge
 }

Static Methods

noOverrides

method signature

static func noOverrides() -> BlazeWidgetItemStyleOverrides

Returns a BlazeWidgetItemStyleOverrides instance with all style properties set to nil, meaning no custom styles will be applied and all default styles will be used.

This method is useful when you want to ensure that an item in a Blaze widget uses the standard styling without any modifications. It can be used to reset styles or when initializing new items that should not have any custom styling applied initially.


Did this page help you?