Reactions icon indicating copy to clipboard operation
Reactions copied to clipboard

I am not able to set custom icon.

Open Rjmaurya13 opened this issue 5 years ago • 1 comments

Below is the code to set my custom icon. But still, it is showing library provided icon icon.

var reactionButton: ReactionButton!{
        didSet {
            reactionButton.reactionSelector = ReactionSelector()
            reactionButton.reactionSelector?.setReactions(self.createReactions())    
       }

func createReactions() -> [Reaction] {
        var reactionArray = [Reaction]()
        let like = Reaction(id: "1", title: "Like", color: .red, icon: UIImage(named: "myIcon.png")!)
       reactionArray = [like]
       return reactionArray
}

Rjmaurya13 avatar Mar 07 '19 14:03 Rjmaurya13

It does not work with single reaction, try adding more reaction :)

shubham14896 avatar Feb 16 '22 20:02 shubham14896