GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemTitleStyle - iOS

BlazeWidgetItemTitleStyle defines the appearance and positioning of a widget item's title, including visibility, position, insets, and the text styles for its unread and read states.

Properties

PropertyTypeDescription
isVisibleBoolWhether the title is visible.
positionBlazeObjectPositioningThe position of the title relative to the image within the widget item.
insetsNSDirectionalEdgeInsetsThe insets of the title.
unreadStateBlazeWidgetItemTextStyleThe title text style when the item is in an unread state.
readStateBlazeWidgetItemTextStyleThe title text style when the item is in a read state.

Customize the title style

You don't create a BlazeWidgetItemTitleStyle directly. Start from a layout preset, then modify the title style on the widget item before you pass the layout to initWidget:

var layout = BlazeWidgetLayout.Presets.StoriesWidget.Row.circles

layout.widgetItemStyle.title.isVisible = true
layout.widgetItemStyle.title.unreadState.textColor = .white
layout.widgetItemStyle.title.readState.textColor = .gray

Did this page help you?