Few clarifications

This commit is contained in:
Igor 2017-10-10 23:59:13 +03:00
parent 827d8a3ca2
commit dca12659d1
2 changed files with 12 additions and 12 deletions

View File

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

View File

@ -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() {}