rename configure(with:) -> configureSeparators(with:)

This commit is contained in:
Ivan Smolin 2020-10-23 15:57:24 +03:00
parent 0a7f68bd23
commit 6433233d9e
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ public extension TableRow where CellType: SeparatorConfigurable {
removeAction(forActionId: configureSeparatorActionId)
let action = TableRowAction<CellType>(.configure) {
$0.cell?.configure(with: separatorType)
$0.cell?.configureSeparators(with: separatorType)
}
action.id = configureSeparatorActionId

View File

@ -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

View File

@ -21,5 +21,5 @@
//
public protocol SeparatorConfigurable {
func configure(with separatorType: ViewSeparatorType)
func configureSeparators(with separatorType: ViewSeparatorType)
}