From 8d84f15b40225e2f5a9e5084d5a5fc54303ec23a Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Wed, 20 Mar 2024 22:18:17 +0100 Subject: [PATCH] Improved the conformance to the CaseIterable protocol for the FilterOption enumeration in the Feed framework. --- .../Logic/Enumerations/FilterOption.swift | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Frameworks/Feed/Bundle/Sources/Logic/Enumerations/FilterOption.swift b/Frameworks/Feed/Bundle/Sources/Logic/Enumerations/FilterOption.swift index d00a222..8accaa1 100644 --- a/Frameworks/Feed/Bundle/Sources/Logic/Enumerations/FilterOption.swift +++ b/Frameworks/Feed/Bundle/Sources/Logic/Enumerations/FilterOption.swift @@ -11,7 +11,7 @@ import ReviewsFoundationKit import ReviewsUIKit import UIKit -enum FilterOption: Int { +enum FilterOption: Int, CaseIterable { case all = 0 case only1Star case only2Star @@ -71,20 +71,6 @@ extension FilterOption { } -// MARK: - CaseIterable -extension FilterOption: CaseIterable { - - // MARK: Computed - static var allCases: [FilterOption] = [ - .only1Star, - .only2Star, - .only3Star, - .only4Star, - .only5Star - ] - -} - // MARK: - String+Constants private extension String { enum Key {