From dca12659d1a73e9ba1e4dedd13ade1f97d062e4a Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 10 Oct 2017 23:59:13 +0300 Subject: [PATCH] Few clarifications --- .../Views/SeparatorCell/SeparatorCell.swift | 20 +++++++++---------- .../SeparatorCellViewModel.swift | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Sources/Classes/Views/SeparatorCell/SeparatorCell.swift b/Sources/Classes/Views/SeparatorCell/SeparatorCell.swift index 2b9d0d60..918713e1 100644 --- a/Sources/Classes/Views/SeparatorCell/SeparatorCell.swift +++ b/Sources/Classes/Views/SeparatorCell/SeparatorCell.swift @@ -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 diff --git a/Sources/Classes/Views/SeparatorCell/SeparatorCellViewModel.swift b/Sources/Classes/Views/SeparatorCell/SeparatorCellViewModel.swift index a109f002..1fac48ec 100644 --- a/Sources/Classes/Views/SeparatorCell/SeparatorCellViewModel.swift +++ b/Sources/Classes/Views/SeparatorCell/SeparatorCellViewModel.swift @@ -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() {}