BlazeStoryPlayerButtonStyle - iOS
The BlazeStoryPlayerButtonStyle struct represents the configuration for a story button within a Blaze story player item.
Properties
width
var width: CGFloatThe width of the button.
height
var height: CGFloatThe height of the button.
color
var color: UIColorThe tint color of the button.
isVisible
var isVisible: BoolIndicates whether the button is visible.
Setting this to false hides the button.
Example: show/hide buttons
Use isVisible on each built-in button inside BlazeStoryPlayerButtonsStyle.
var style = BlazeStoryPlayerStyle.base()
// Show Captions, hide More
style.buttons.captions.isVisible = true
style.buttons.more.isVisible = falseisVisibleForAds
var isVisibleForAds: BoolIndicates whether the button is visible for ads
contentHorizontalAlignment
var contentHorizontalAlignment: UIControl.ContentHorizontalAlignmentHorizontal content alignment of the button.
contentVerticalAlignment
var contentVerticalAlignment: UIControl.ContentVerticalAlignmentVertical content alignment of the button.
customImage
var customImage: BlazeStoryPlayerButtonCustomImageStates?Custom image for the button.
glassBackground
var glassBackground: BlazeGlassBackgroundStateControls whether the button renders a Liquid Glass background on iOS 26 and later. Defaults to .off for every Story button, since none of their default icons has a translucent background. Set it to .on to add glass. See Liquid Glass.
Updated about 9 hours ago
