diff --git a/ContainerControllerSwift.podspec b/ContainerControllerSwift.podspec index 191f249..60c8d91 100644 --- a/ContainerControllerSwift.podspec +++ b/ContainerControllerSwift.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'ContainerControllerSwift' - s.version = '1.1.0' + s.version = '1.1.1' s.summary = 'This is a swipe-panel from application: https://www.apple.com/ios/maps/' # This description is used to generate tags and improve search results. diff --git a/Sources/ContainerController/ContainerController.swift b/Sources/ContainerController/ContainerController.swift index 920d3c7..a058a05 100644 --- a/Sources/ContainerController/ContainerController.swift +++ b/Sources/ContainerController/ContainerController.swift @@ -1134,7 +1134,19 @@ extension ContainerController: UITableViewDataSource { } return UITableViewCell() } - + + public func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { + if let tableAdapterView = scrollView as? TableAdapterView { + return tableAdapterView.tableView(tableView, canEditRowAt: indexPath) + } + return false + } + + public func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { + if let tableAdapterView = scrollView as? TableAdapterView { + return tableAdapterView.tableView(tableView, commit: editingStyle, forRowAt: indexPath) + } + } } // MARK: - Collection Delegate