Customize TapActionRow button color
DSofter opened this issue · comments
DSofter commented
Cheng-Yao Lin commented
A custom cell type should come in handy.
let row = TapActionRow<CustomTapActionCell>(text: "Log out", action: { _ in })
import QuickTableViewController
final class CustomTapActionCell: TapActionCell {
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
tintColor = .red
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
tintColor = .red
}
}