LikeButton

open class LikeButton : ReactionButton

A like button.

  • Creates an instance of the like button.

    Declaration

    Swift

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

    Declaration

    Swift

    open func like<T: ActivityProtocol, U: UserProtocol>(_ activity: T,
                                                         presenter: ReactionPresenterProtocol,
                                                         likedReaction: T.ReactionType? = nil,
                                                         parentReaction: T.ReactionType? = nil,
                                                         userTypeOf userType: U.Type,
                                                         _ completion: @escaping ErrorCompletion)
        where T.ReactionType == GetStream.Reaction<ReactionExtraData, U>