Remember last used trending category and country

This commit is contained in:
Arkadiusz Fal
2021-09-27 00:19:50 +02:00
parent c4674c06a4
commit 994f1f9215
5 changed files with 14 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
// swiftlint:disable switch_case_on_newline
import Defaults
enum Country: String, CaseIterable, Identifiable, Hashable {
enum Country: String, CaseIterable, Identifiable, Hashable, Defaults.Serializable {
var id: String {
rawValue
}

View File

@@ -1,4 +1,6 @@
enum TrendingCategory: String, CaseIterable, Identifiable {
import Defaults
enum TrendingCategory: String, CaseIterable, Identifiable, Defaults.Serializable {
case `default`, music, gaming, movies
var id: TrendingCategory.RawValue {