Skip to content

Commit 0125f2b

Browse files
committed
Fix images icon for default providers.
1 parent 15d3dba commit 0125f2b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

SPDiffable.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SPDiffable'
4-
s.version = '1.2'
4+
s.version = '1.2.1'
55
s.summary = 'Extenshion of Diffable API which allow not duplicate code and use less models.'
66
s.homepage = 'https://github.com/ivanvorobei/SPDiffable'
77
s.source = { :git => 'https://github.com/ivanvorobei/SPDiffable.git', :tag => s.version }

Sources/SPDiffable/CellProvider/SPDiffableTableCellProviders.swift

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public enum SPDiffableTableCellProviders {
6969
cell.textLabel?.text = item.text
7070
let control = SPDiffableSwitch(action: item.action)
7171
control.isOn = item.isOn
72+
cell.imageView?.image = item.icon
7273
cell.accessoryView = control
7374
cell.selectionStyle = .none
7475
return cell
@@ -86,6 +87,7 @@ public enum SPDiffableTableCellProviders {
8687
control.value = item.value
8788
control.minimumValue = item.minimumValue
8889
control.maximumValue = item.maximumValue
90+
cell.imageView?.image = item.icon
8991
cell.accessoryView = control
9092
cell.selectionStyle = .none
9193
return cell

0 commit comments

Comments
 (0)