janselv/fave-button

Change the default color impossible

Senocico opened this issue · 3 comments

I couldn't change the default gray color in any way.
Is there an option?

class CustomFaveButton: FaveButton {
    override init(frame: CGRect) {
        super.init(frame: frame)

        self.normalColor = UIColor.white
    }
}

Set isSelected to false in your viewDidLoad or cellForItemAt.
The normalColor you set on the storyboard will only take effect when toggled.

I am facing the same problem. Both of the above solutions are not helping.