Skip to content

Commit 9ad71d9

Browse files
committed
Added higlight content.
1 parent 276d1ff commit 9ad71d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/NativeUIKit/Table/Button/NativeDiffableLeftButton.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

Sources/NativeUIKit/Table/Button/SPDiffableTableCellProvider+Button.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)