From 59be22c0e0146bfaff2a4e8a759a7aa3c21ced2c Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Tue, 29 Oct 2019 13:47:49 -0400 Subject: [PATCH] enum clean --- MVMCoreUI/Molecules/Items/TableViewCell.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MVMCoreUI/Molecules/Items/TableViewCell.swift b/MVMCoreUI/Molecules/Items/TableViewCell.swift index 77e2c57f..e8cfc179 100644 --- a/MVMCoreUI/Molecules/Items/TableViewCell.swift +++ b/MVMCoreUI/Molecules/Items/TableViewCell.swift @@ -24,10 +24,10 @@ import UIKit public var topSeparatorView: SeparatorView? public var bottomSeparatorView: SeparatorView? public enum SeparatorFrequency: String { - case All = "all" - case AllExceptTop = "allExceptTop" - case AllExceptBottom = "allExceptBottom" - case Between = "between" + case all + case allExceptTop + case allExceptBottom + case between } /// For subclasses that want to use a custom accessory view. @@ -256,7 +256,7 @@ import UIKit } else { topSeparatorView?.hide() bottomSeparatorView?.setAsLight() - setSeparatorFrequency(TableViewCell.SeparatorFrequency.AllExceptTop, indexPath: indexPath) + setSeparatorFrequency(TableViewCell.SeparatorFrequency.allExceptTop, indexPath: indexPath) } } @@ -285,24 +285,24 @@ import UIKit /// For when the separator between cells shows. public func setSeparatorFrequency(_ separatorFrequency: SeparatorFrequency, indexPath: IndexPath) { switch separatorFrequency { - case .All: + case .all: if indexPath.row == 0 { topSeparatorView?.show() } else { topSeparatorView?.hide() } bottomSeparatorView?.show() - case .AllExceptBottom: + case .allExceptBottom: topSeparatorView?.show() bottomSeparatorView?.hide() - case .Between: + case .between: if indexPath.row == 0 { topSeparatorView?.hide() } else { topSeparatorView?.show() } bottomSeparatorView?.hide() - case .AllExceptTop: + case .allExceptTop: fallthrough default: topSeparatorView?.hide()