Return deprecated

This commit is contained in:
Vlad 2020-12-26 15:22:00 +03:00
parent efc03d7c22
commit caec2dd10e
3 changed files with 4 additions and 4 deletions

View File

@ -347,7 +347,7 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate {
return sections[indexPath.section].rows[indexPath.row].isEditingAllowed(forIndexPath: indexPath)
}
@available(iOS, obsoleted: 11, message: "Use leadingSwipeActionsConfigurationForRowAt(:_) and trailingSwipeActionsConfigurationForRowAt(:_) instead")
@available(iOS, deprecated: 11, message: "Use leadingSwipeActionsConfigurationForRowAt(:_) and trailingSwipeActionsConfigurationForRowAt(:_) instead")
open func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
return sections[indexPath.section].rows[indexPath.row].editingActions
}

View File

@ -47,7 +47,7 @@ public protocol RowActionable {
@available(iOS 11, *)
var performsFirstActionWithFullSwipe: Bool { get }
@available(iOS, obsoleted: 11, message: "Use leadingContextualActions, trailingContextualActions instead")
@available(iOS, deprecated: 11, message: "Use leadingContextualActions, trailingContextualActions instead")
var editingActions: [UITableViewRowAction]? { get }
func isEditingAllowed(forIndexPath indexPath: IndexPath) -> Bool

View File

@ -25,7 +25,7 @@ open class TableRow<CellType: ConfigurableCell>: Row where CellType: UITableView
public let item: CellType.CellData
private lazy var actions = [String: [TableRowAction<CellType>]]()
@available(iOS, obsoleted: 11, message: "Use leadingContextualActions, trailingContextualActions instead")
@available(iOS, deprecated: 11, message: "Use leadingContextualActions, trailingContextualActions instead")
open private(set) var editingActions: [UITableViewRowAction]?
@available(iOS 11, *)
@ -67,7 +67,7 @@ open class TableRow<CellType: ConfigurableCell>: Row where CellType: UITableView
return CellType.self
}
@available(iOS, obsoleted: 11, message: "Use leadingContextualActions, trailingContextualActions instead")
@available(iOS, deprecated: 11, message: "Use leadingContextualActions, trailingContextualActions instead")
public init(item: CellType.CellData,
actions: [TableRowAction<CellType>]? = nil,
editingActions: [UITableViewRowAction]? = nil) {