From 78b67e4c4250007f1c0ea4f5d4eb976bd96ac4b2 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Wed, 16 Nov 2016 17:20:43 +0300 Subject: [PATCH] private(set) for rowHeightCalculator --- Sources/TableDirector.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/TableDirector.swift b/Sources/TableDirector.swift index f6cf937..c8bfb04 100644 --- a/Sources/TableDirector.swift +++ b/Sources/TableDirector.swift @@ -30,7 +30,7 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate { private weak var scrollDelegate: UIScrollViewDelegate? private var cellRegisterer: TableCellRegisterer? - public var rowHeightCalculator: RowHeightCalculator? + public private(set) var rowHeightCalculator: RowHeightCalculator? @available(*, deprecated, message: "Produced incorrect behaviour") open var shouldUsePrototypeCellHeightCalculation: Bool = false { @@ -93,7 +93,7 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate { return scrollDelegate?.responds(to: selector) == true ? scrollDelegate : super.forwardingTarget(for: selector) } - // MARK: - Internal - + // MARK: - Internal func hasAction(_ action: TableRowActionType, atIndexPath indexPath: IndexPath) -> Bool { return sections[indexPath.section].rows[indexPath.row].has(action: action) @@ -225,7 +225,7 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate { return indexPath } - // MARK: - Row editing - + // MARK: - Row editing open func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { return sections[indexPath.section].rows[indexPath.row].isEditingAllowed(forIndexPath: indexPath)