Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am not able to set custom icon. #29

Open
Rjmaurya13 opened this issue Mar 7, 2019 · 1 comment
Open

I am not able to set custom icon. #29

Rjmaurya13 opened this issue Mar 7, 2019 · 1 comment

Comments

@Rjmaurya13
Copy link

Rjmaurya13 commented Mar 7, 2019

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
}
@shubham14896
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants