Improved the conformance to the CaseIterable protocol for the FilterOption enumeration in the Feed framework.
This commit is contained in:
parent
0ae7aa85cd
commit
8d84f15b40
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user