Reactions
Reactions copied to clipboard
I am not able to set custom icon.
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
}
It does not work with single reaction, try adding more reaction :)