Skip to content

Commit 989a0c6

Browse files
committed
Fixed actionable for collection.
1 parent fe5dcd5 commit 989a0c6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
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 = '4.1.0'
4+
s.version = '4.1.1'
55
s.summary = 'Extension of Diffable API which allow not duplicate code and use less models. Included example for SideBar.'
66
s.homepage = 'https://github.com/ivanvorobei/SPDiffable'
77
s.source = { :git => 'https://github.com/ivanvorobei/SPDiffable.git', :tag => s.version }

Sources/SPDiffable/Models/SPDiffableWrapperItem.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,16 @@ import UIKit
2929

3030
Also need pass uniq `identifier`.
3131
*/
32-
open class SPDiffableWrapperItem: SPDiffableItem, SPDiffableItemActionable {
32+
open class SPDiffableWrapperItem: SPDiffableActionableItem {
3333

3434
/**
3535
SPDiffable: You can pass any object as model.
3636
Later need uwrap it for get.
3737
*/
3838
open var model: Any
39-
open var action: Action?
4039

4140
public init(id: String, model: Any, action: Action? = nil) {
4241
self.model = model
43-
self.action = action
44-
super.init(id: id)
42+
super.init(id: id, action: action)
4543
}
4644
}

Sources/SPDiffable/Table/Cells/SPDiffableTextFieldTableViewCell.swift

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ open class SPDiffableTextFieldTableViewCell: UITableViewCell {
5050

5151
open override func prepareForReuse() {
5252
super.prepareForReuse()
53+
textField.text = nil
5354
accessoryView = nil
5455
detailTextLabel?.text = nil
5556
}

0 commit comments

Comments
 (0)