MortimerGoro / MGSwipeTableCell

An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions.
MIT License
6.96k stars 1.07k forks source link

Change the color of text leftSideButton and rightRightButton #251

Closed Prit-Singh closed 7 years ago

Prit-Singh commented 8 years ago

Hi, I need to change the color of text of leftButton and rightButton of cell and also change the font size of text of buttons, Please let me know how to change the color of text. Its very urgent.

Thanks in advance.

yukitoto commented 7 years ago
let button = MGSwipeButton()
button.titleLabel # you can access to title label
voxiadmin commented 5 years ago

I know the issue is closed but this worked better for me, thanks:

let button = MGSwipeButton(title:"Title", backgroundColor: myUIColor)
    button.setTitleColor(myTitleUIColor, for: UIControl.State.normal)