File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Sources/NativeUIKit/Table/Button Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ open class NativeDiffableLeftButton: SPDiffableTableRow {
2929
3030 open var textColor : UIColor
3131 open var detailColor : UIColor
32+ open var higlightStyle : SPTableViewCell . HiglightStyle
3233
3334 public init (
3435 id: String ? = nil ,
@@ -38,18 +39,19 @@ open class NativeDiffableLeftButton: SPDiffableTableRow {
3839 detailColor: UIColor = . secondaryLabel,
3940 icon: UIImage ? = nil ,
4041 accessoryType: UITableViewCell . AccessoryType = . none,
42+ higlightStyle: SPTableViewCell . HiglightStyle = . content,
4143 action: SPDiffableTableRow . Action ? = nil
4244 ) {
4345 self . textColor = textColor
4446 self . detailColor = detailColor
47+ self . higlightStyle = higlightStyle
4548
4649 super. init (
4750 id: id,
4851 text: text,
4952 detail: detail,
5053 icon: icon,
5154 accessoryType: accessoryType,
52- selectionStyle: . none,
5355 action: action
5456 )
5557 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ extension SPDiffableTableDataSource.CellProvider {
3636 cell. detailTextLabel? . textColor = item. detailColor
3737 cell. imageView? . image = item. icon
3838 cell. accessoryType = item. accessoryType
39- cell. higlightStyle = . content
39+ cell. higlightStyle = item . higlightStyle
4040 return cell
4141 }
4242 }
You can’t perform that action at this time.
0 commit comments