From caec2dd10e1ce96f5f0a869e11b5158b9e18eb3f Mon Sep 17 00:00:00 2001 From: Vlad Date: Sat, 26 Dec 2020 15:22:00 +0300 Subject: [PATCH] Return deprecated --- Sources/TableDirector.swift | 2 +- Sources/TableKit.swift | 2 +- Sources/TableRow.swift | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/TableDirector.swift b/Sources/TableDirector.swift index e5e2564..e269398 100644 --- a/Sources/TableDirector.swift +++ b/Sources/TableDirector.swift @@ -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 } diff --git a/Sources/TableKit.swift b/Sources/TableKit.swift index 65ae26d..1aba0bd 100644 --- a/Sources/TableKit.swift +++ b/Sources/TableKit.swift @@ -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 diff --git a/Sources/TableRow.swift b/Sources/TableRow.swift index f78a4b3..6679595 100644 --- a/Sources/TableRow.swift +++ b/Sources/TableRow.swift @@ -25,7 +25,7 @@ open class TableRow: Row where CellType: UITableView public let item: CellType.CellData private lazy var actions = [String: [TableRowAction]]() - @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: 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]? = nil, editingActions: [UITableViewRowAction]? = nil) {