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 {
29
29
30
30
open var textColor : UIColor
31
31
open var detailColor : UIColor
32
+ open var higlightStyle : SPTableViewCell . HiglightStyle
32
33
33
34
public init (
34
35
id: String ? = nil ,
@@ -38,18 +39,19 @@ open class NativeDiffableLeftButton: SPDiffableTableRow {
38
39
detailColor: UIColor = . secondaryLabel,
39
40
icon: UIImage ? = nil ,
40
41
accessoryType: UITableViewCell . AccessoryType = . none,
42
+ higlightStyle: SPTableViewCell . HiglightStyle = . content,
41
43
action: SPDiffableTableRow . Action ? = nil
42
44
) {
43
45
self . textColor = textColor
44
46
self . detailColor = detailColor
47
+ self . higlightStyle = higlightStyle
45
48
46
49
super. init (
47
50
id: id,
48
51
text: text,
49
52
detail: detail,
50
53
icon: icon,
51
54
accessoryType: accessoryType,
52
- selectionStyle: . none,
53
55
action: action
54
56
)
55
57
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ extension SPDiffableTableDataSource.CellProvider {
36
36
cell. detailTextLabel? . textColor = item. detailColor
37
37
cell. imageView? . image = item. icon
38
38
cell. accessoryType = item. accessoryType
39
- cell. higlightStyle = . content
39
+ cell. higlightStyle = item . higlightStyle
40
40
return cell
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments