rename configure(with:) -> configureSeparators(with:)
This commit is contained in:
parent
0a7f68bd23
commit
6433233d9e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -21,5 +21,5 @@
|
|||
//
|
||||
|
||||
public protocol SeparatorConfigurable {
|
||||
func configure(with separatorType: ViewSeparatorType)
|
||||
func configureSeparators(with separatorType: ViewSeparatorType)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue