StoryGroupBadgeStyle

@objc(StoryGroupBadgeStyle)
public final class StoryGroupBadgeStyle : NSObject

This class represents a story group’s badge style in the StorylyView.

  • Text value of the story group’s badge

    Declaration

    Swift

    @objc
    public let text: String?
  • Text color value of the story group’s badge

    Declaration

    Swift

    @objc
    public let textColor: UIColor?
  • Background color value of the story group’s badge

    Declaration

    Swift

    @objc
    public let backgroundColor: UIColor?
  • End time of the badge in timestamp format

    Declaration

    Swift

    @objc
    public let endTime: NSNumber?
  • Text template for the badge timestamp format

    Declaration

    Swift

    @objc
    public let template: String?
  • StoryGroupStyle initialization

    Declaration

    Swift

    @objc
    public init(
        text: String?,
        textColor: UIColor?,
        backgroundColor: UIColor?,
        endTime: NSNumber?,
        template: String?
    )

    Parameters

    badge

    Badge value of the story group