BlazeWidgetItemDurationElementStateStyle - iOS
The BlazeWidgetItemDurationElementStateStyle struct represents the configuration for the duration element of a widget item, for a specific state.
Properties
isVisible
var isVisible: Boolindicates whether the duration element is visible.
Make sure to set the parent indicator 'isVisible' property to true if toggled on.
backgroundColor
var backgroundColor: UIColorThe background color of the duration element.
backgroundImage
var backgroundImage: UIImage?The background image of the duration element.
textStyle
var textStyle: BlazeWidgetItemTextStyleThe style configuration for the duration element text.
cornerRadius
var cornerRadius: CGFloatThe corner radius of the duration element.
cornerRadiusRatio
var cornerRadiusRatio: CGFloat?The corner radius ratio is a value between 0.0 and 1.0, which computes the final corner radius for the duration element. Overrides corner radius property.
For example, a value of 0.5 on a 1:1 width/height item duration element will result in a perfect circle appearance for the duration element.
borderColor
var borderColor: UIColorThe color of the border.
borderWidth
var borderWidth: CGFloatThe width of the border.
glassBackground
var glassBackground: BlazeGlassBackgroundStateControls whether the duration element renders a Liquid Glass background on iOS 26 and later instead of its flat background, tinted with backgroundColor. Defaults to .automatic in every state, so it follows Blaze.shared.isLiquidGlassEnabled. See Liquid Glass.
Updated about 10 hours ago
