StorySwipeComponent

@objc(StorySwipeComponent)
public final class StorySwipeComponent : StoryComponent

This class represents the Swipe component.

  • text of the interactive component

    Declaration

    Swift

    @objc
    public let text: String
  • action url assigned to the interactive component

    Declaration

    Swift

    @objc
    public let actionUrl: String?
  • products assigned to the interactive component

    Declaration

    Swift

    @objc
    public let products: [STRProductItem]?
  • StorySwipeComponent initialization

    Declaration

    Swift

    @objc
    public init(
        id: String,
        text: String,
        actionUrl: String?,
        products: [STRProductItem]?
    )

    Parameters

    id

    Id of the interactive component

    text

    text of the interactive component