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