RepostButton

open class RepostButton : ReactionButton

A repost button.

  • Creates an instance of the repost button.

    Declaration

    Swift

    public static func make(frame: CGRect = CGRect(x: 0, y: 0, width: 44, height: 44)) -> RepostButton
  • Reposts an activity.

    Declaration

    Swift

    open func repost<T: ActivityProtocol, U: UserProtocol>(_ activity: T,
                                                           presenter: ReactionPresenterProtocol,
                                                           userTypeOf userType: U.Type,
                                                           targetsFeedIds: [FeedId] = [],
                                                           _ completion: @escaping ErrorCompletion)
        where T.ReactionType == GetStream.Reaction<ReactionExtraData, U>