StoryPromoCodeComponent

@objc
public final class StoryPromoCodeComponent : StoryComponent

This class represents the PromoCode component.

  • Type of the component

    Declaration

    Swift

    @objc
    public override var type: StoryComponentType { get }
  • PromoCode text that the user copied

    Declaration

    Swift

    @objc
    public let text: String
  • StoryRatingComponent initialization

    Declaration

    Swift

    @objc
    public init(text: String)

    Parameters

    text

    PromoCode text that the user copied