GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemEventTimeElementStateStyle - iOS

The BlazeWidgetItemEventTimeElementStateStyle struct configures the event time element for a single stream state (upcoming, live, or ended). It is used by BlazeWidgetItemEventTimeElementStyle through its streamStates.

Properties

isVisible

var isVisible: Bool

Whether the event time is visible in this state.

backgroundColor

var backgroundColor: UIColor

The background color behind the event time text in this state.

backgroundImage

var backgroundImage: UIImage?

An optional background image for this state.

textStyle

var textStyle: BlazeWidgetItemTextStyle

The text style of the event time in this state. See BlazeWidgetItemTextStyle.

cornerRadius

var cornerRadius: CGFloat

The corner radius of the element in this state.

cornerRadiusRatio

var cornerRadiusRatio: CGFloat?

A value between 0.0 and 1.0 that computes the final corner radius, overriding cornerRadius.

borderColor

var borderColor: UIColor

The border color of the element in this state.

borderWidth

var borderWidth: CGFloat

The border width of the element in this state.

Default values

PropertyDefault
isVisibletrue for upcoming; false for live and ended
backgroundColorblack at 60% opacity
textStylesystem font, size 11, medium weight, white
cornerRadius4
borderColor.clear
borderWidth0

Did this page help you?