GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeStoryPlayerCtaStyle - iOS

The BlazeStoryPlayerCtaStyle struct represents the style configuration for the Call to Action (CTA) button in a story.

Properties

cornerRadius

var cornerRadius: CGFloat

The corner radius of the CTA button.

borderColor

var borderColor: UIColor

The SDK fallback border color of the CTA button, used when the backend/CMS provides no valid borderColor. Backend/CMS value takes priority when present and parseable. Defaults to .clear.

borderWidth

var borderWidth: CGFloat

The SDK fallback border width of the CTA button in points, used when the backend/CMS provides no borderWidth. Backend/CMS value takes priority when present. Defaults to 0.

font

var font: UIFont

The font of the CTA button.

icon

var icon: UIImage?

The optional icon image displayed on the CTA button. If provided, this icon is used to enhance the visual style or convey additional meaning to the CTA button. It's typically displayed alongside the button text or in place of text for icon-only buttons.

isVisible

var isVisible: Bool

Whether the CTA should be visible.
When false, the CTA will be hidden even if it should be shown according to the content.
Only applies to non-ad playables.


Did this page help you?