Builder

@objc(StorylyStoryGroupStylingBuilder)
public class Builder : NSObject

Builder class of StorylyStoryGroupStyling

  • This function allows you to change the border color of the story group icons which are watched by the user.

    Declaration

    Swift

    @objc(setIconBorderColorSeen:)
    public func setIconBorderColorSeen(colors: [UIColor]) -> Builder
  • This function allows you to change the border color of the story group icons which are unwatched by the user.

    Declaration

    Swift

    @objc(setIconBorderColorNotSeen:)
    public func setIconBorderColorNotSeen(colors: [UIColor]) -> Builder
  • This function allows you to change the background color of the story group icon which is shown to the user as skeleton view till the stories are loaded

    Declaration

    Swift

    @objc(setIconBackgroundColor:)
    public func setIconBackgroundColor(color: UIColor) -> Builder
  • If any of the story group is selected as pinned group from dashboard, a little star icon will appear along with the story group icon. This function allows you to change the background color of this pin icon

    Declaration

    Swift

    @objc(setPinIconColor:)
    public func setPinIconColor(color: UIColor) -> Builder
  • This function allows you to change height of the story group icon. Have to set story group size attribute to StoryGroupSize.Custom for use this feature.

    Declaration

    Swift

    @objc(setIconHeight:)
    public func setIconHeight(height: CGFloat) -> Builder
  • This function allows you to change width of the story group icon. Have to set story group size attribute to StoryGroupSize.Custom for use this feature.

    Declaration

    Swift

    @objc(setIconWidth:)
    public func setIconWidth(width: CGFloat) -> Builder
  • This function allows you to change corner radius value of the story group icon. Have to set story group size attribute to StoryGroupSize.Custom for use this feature.

    Declaration

    Swift

    @objc(setIconCornerRadius:)
    public func setIconCornerRadius(radius: CGFloat) -> Builder
  • This function allows you to use different story groups images for different labels

    Declaration

    Swift

    @objc(setIconThematicImageLabel:)
    public func setIconThematicImageLabel(label: String?) -> Builder
  • This function allows you to change the animation of the story group

    Declaration

    Swift

    @objc(setIconBorderAnimation:)
    public func setIconBorderAnimation(animation: StoryGroupAnimation) -> Builder
  • This function allows you to change the text color of the story group

    Declaration

    Swift

    @objc(setTitleSeenColor:)
    public func setTitleSeenColor(color: UIColor) -> Builder
  • This function allows you to change the text color of the story group

    Declaration

    Swift

    @objc(setTitleNotSeenColor:)
    public func setTitleNotSeenColor(color: UIColor) -> Builder
  • This function allows you to change the number of lines of the story group text

    Declaration

    Swift

    @objc(setTitleLineCount:)
    public func setTitleLineCount(count: Int) -> Builder
  • This function allows you to change the font of the story group text

    Declaration

    Swift

    @objc(setTitleFont:)
    public func setTitleFont(font: UIFont?) -> Builder
  • This function allows you to change the visibility of the story group text

    Declaration

    Swift

    @objc(setTitleVisibility:)
    public func setTitleVisibility(isVisible: Bool) -> Builder
  • This function allows you to change the size of the story group

    Declaration

    Swift

    @objc(setSize:)
    public func setSize(size: StoryGroupSize) -> Builder
  • This function will allow you to add custom story group view

    • - parameter factory StoryGroupViewFactory? instance to set

    Declaration

    Swift

    @objc(setCustomGroupViewFactory:)
    public func setCustomGroupViewFactory(factory: StoryGroupViewFactory?) -> Builder
  • This function builds StorylyStoryGroupStyling with the current properties

    Declaration

    Swift

    @objc
    public func build() -> StorylyStoryGroupStyling

    Return Value

    StorylyStoryGroupStyling instance