From 6433233d9eedaaffb9a7e35eb80e2ca3c60bd97a Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Fri, 23 Oct 2020 15:57:24 +0300 Subject: [PATCH] rename configure(with:) -> configureSeparators(with:) --- .../Separators/Extensions/TableRow/TableRow+Separators.swift | 2 +- TIUIElements/Sources/Separators/BaseSeparatorCell.swift | 4 ++-- TIUIElements/Sources/Separators/SeparatorConfigurable.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TITableKitUtils/Sources/Separators/Extensions/TableRow/TableRow+Separators.swift b/TITableKitUtils/Sources/Separators/Extensions/TableRow/TableRow+Separators.swift index e4903641..05ae4742 100644 --- a/TITableKitUtils/Sources/Separators/Extensions/TableRow/TableRow+Separators.swift +++ b/TITableKitUtils/Sources/Separators/Extensions/TableRow/TableRow+Separators.swift @@ -36,7 +36,7 @@ public extension TableRow where CellType: SeparatorConfigurable { removeAction(forActionId: configureSeparatorActionId) let action = TableRowAction(.configure) { - $0.cell?.configure(with: separatorType) + $0.cell?.configureSeparators(with: separatorType) } action.id = configureSeparatorActionId diff --git a/TIUIElements/Sources/Separators/BaseSeparatorCell.swift b/TIUIElements/Sources/Separators/BaseSeparatorCell.swift index e29b8067..f0154e73 100644 --- a/TIUIElements/Sources/Separators/BaseSeparatorCell.swift +++ b/TIUIElements/Sources/Separators/BaseSeparatorCell.swift @@ -44,7 +44,7 @@ open class BaseSeparatorCell: BaseInitializableCell, SeparatorConfigurable { .init() } - public func configure(with separatorType: ViewSeparatorType) { + public func configureSeparators(with separatorType: ViewSeparatorType) { topSeparatorView.isHidden = separatorType.topIsHidden bottomSeparatorView.isHidden = separatorType.bottomIsHidden @@ -66,7 +66,7 @@ open class BaseSeparatorCell: BaseInitializableCell, SeparatorConfigurable { open override func prepareForReuse() { super.prepareForReuse() - configure(with: .none) + configureSeparators(with: .none) } // MARK: - InitializableView diff --git a/TIUIElements/Sources/Separators/SeparatorConfigurable.swift b/TIUIElements/Sources/Separators/SeparatorConfigurable.swift index 7730cbd0..6e58a390 100644 --- a/TIUIElements/Sources/Separators/SeparatorConfigurable.swift +++ b/TIUIElements/Sources/Separators/SeparatorConfigurable.swift @@ -21,5 +21,5 @@ // public protocol SeparatorConfigurable { - func configure(with separatorType: ViewSeparatorType) + func configureSeparators(with separatorType: ViewSeparatorType) }