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
| Property | Type | Description |
|---|---|---|
| isVisible | Bool | Whether the title is visible. |
| position | BlazeObjectPositioning | The position of the title relative to the image within the widget item. |
| insets | NSDirectionalEdgeInsets | The insets of the title. |
| unreadState | BlazeWidgetItemTextStyle | The title text style when the item is in an unread state. |
| readState | BlazeWidgetItemTextStyle | The 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 = .grayUpdated 11 days ago
Did this page help you?
