Return deprecated
This commit is contained in:
parent
efc03d7c22
commit
caec2dd10e
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue