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: BoolWhether the event time is visible in this state.
backgroundColor
var backgroundColor: UIColorThe background color behind the event time text in this state.
backgroundImage
var backgroundImage: UIImage?An optional background image for this state.
textStyle
var textStyle: BlazeWidgetItemTextStyleThe text style of the event time in this state. See BlazeWidgetItemTextStyle.
cornerRadius
var cornerRadius: CGFloatThe 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: UIColorThe border color of the element in this state.
borderWidth
var borderWidth: CGFloatThe border width of the element in this state.
Default values
| Property | Default |
|---|---|
isVisible | true for upcoming; false for live and ended |
backgroundColor | black at 60% opacity |
textStyle | system font, size 11, medium weight, white |
cornerRadius | 4 |
borderColor | .clear |
borderWidth | 0 |
Updated 11 days ago
Did this page help you?
