StoryGroup

@objc
public final class StoryGroup : NSObject

This class represents a story group in the StorylyView.

  • id

    ID of the story group

    Declaration

    Swift

    @objc
    public let id: Int
  • Title of the story group

    Declaration

    Swift

    @objc
    public let title: String
  • URL of the story group icon image

    Declaration

    Swift

    @objc
    public let iconUrl: URL
  • URLs of different the story group icon themes

    Declaration

    Swift

    @objc
    public let thematicIconUrls: [String : URL]?
  • URL of the story group cover image

    Declaration

    Swift

    @objc
    public let coverUrl: URL?
  • Order index of the story group

    Declaration

    Swift

    @objc
    public let index: Int
  • State of the story group that shows whether all of the stories are seen or not

    Declaration

    Swift

    @objc
    public let seen: Bool
  • List of stories in the story group

    Declaration

    Swift

    @objc
    public let stories: [Story]
  • Pin status of the story group that shows whether group is pinned or not

    Declaration

    Swift

    @objc
    public let pinned: Bool
  • Type of the story group

    Declaration

    Swift

    @objc
    public let type: StoryGroupType
  • StoryGroup initialization

    Declaration

    Swift

    @objc
    public init(id: Int,
                title: String,
                iconUrl: URL,
                thematicIconUrls: [String: URL]?,
                coverUrl: URL?,
                index: Int,
                seen: Bool,
                stories: [Story],
                pinned: Bool,
                type: StoryGroupType)

    Parameters

    id

    ID of the story group

    title

    Title of the story group

    iconUrl

    URL of the story group icon image

    thematicIconUrls

    URLs of different the story group icon themes

    coverUrl

    URL of the story group cover image

    index

    Order index of the story group

    seen

    State of the story group that shows whether all of the stories are seen or not

    stories

    List of stories in the story group

    pinned

    Pin status of the story group that shows whether group is pinned or not

    type

    Type of the story group