Skip to content

Commit ab373c5

Browse files
committed
fix talbe-adapter
1 parent 29c7b63 commit ab373c5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

ContainerControllerSwift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'ContainerControllerSwift'
11-
s.version = '1.1.0'
11+
s.version = '1.1.1'
1212
s.summary = 'This is a swipe-panel from application: https://www.apple.com/ios/maps/'
1313

1414
# This description is used to generate tags and improve search results.

Sources/ContainerController/ContainerController.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,19 @@ extension ContainerController: UITableViewDataSource {
11341134
}
11351135
return UITableViewCell()
11361136
}
1137-
1137+
1138+
public func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
1139+
if let tableAdapterView = scrollView as? TableAdapterView {
1140+
return tableAdapterView.tableView(tableView, canEditRowAt: indexPath)
1141+
}
1142+
return false
1143+
}
1144+
1145+
public func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
1146+
if let tableAdapterView = scrollView as? TableAdapterView {
1147+
return tableAdapterView.tableView(tableView, commit: editingStyle, forRowAt: indexPath)
1148+
}
1149+
}
11381150
}
11391151

11401152
// MARK: - Collection Delegate

0 commit comments

Comments
 (0)