Few clarifications
This commit is contained in:
parent
827d8a3ca2
commit
dca12659d1
|
|
@ -42,16 +42,16 @@ open class SeparatorCell: UITableViewCell {
|
|||
configureInterface(with: viewModel)
|
||||
}
|
||||
|
||||
/// Use this function to place separator at hierarchy
|
||||
/// - parameter front: Move separator to front or bottom in heirarchy
|
||||
public func moveSeparators(to front: Bool) {
|
||||
if front {
|
||||
contentView.bringSubview(toFront: topView)
|
||||
contentView.bringSubview(toFront: bottomView)
|
||||
} else {
|
||||
contentView.sendSubview(toBack: topView)
|
||||
contentView.sendSubview(toBack: bottomView)
|
||||
}
|
||||
/// Move separator upward in hierarchy
|
||||
public func bringSeparatorsToFront() {
|
||||
contentView.bringSubview(toFront: topView)
|
||||
contentView.bringSubview(toFront: bottomView)
|
||||
}
|
||||
|
||||
/// Move separator backward in hierarchy
|
||||
public func sendSeparatorsToBack() {
|
||||
contentView.sendSubview(toBack: topView)
|
||||
contentView.sendSubview(toBack: bottomView)
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@ open class SeparatorCellViewModel {
|
|||
internal var separatorType = CellSeparatorType.none
|
||||
|
||||
/// Configuration for topSeparator
|
||||
/// - Importnat: Bottom dimension is ignored
|
||||
/// - Important: Bottom dimension is ignored
|
||||
internal var topSeparatorConfiguration: SeparatorConfiguration?
|
||||
|
||||
/// Configuration for topSeparator
|
||||
/// - Importnat: Top dimension is ignored
|
||||
/// - Important: Top dimension is ignored
|
||||
internal var bottomSeparatorConfiguration: SeparatorConfiguration?
|
||||
|
||||
public init() {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue