different home screen layouts
This commit is contained in:
@@ -23,6 +23,28 @@ enum VotingLayoutStyle: Int, CaseIterable {
|
||||
}
|
||||
}
|
||||
|
||||
enum DayViewStyle: Int, CaseIterable {
|
||||
case classic = 0 // Current card style with gradient icons
|
||||
case minimal = 1 // Clean, simple flat cards
|
||||
case compact = 2 // Dense timeline view
|
||||
case bubble = 3 // Colorful full-width bubbles
|
||||
case grid = 4 // 3 entries per row grid
|
||||
|
||||
var displayName: String {
|
||||
switch self {
|
||||
case .classic: return "Classic"
|
||||
case .minimal: return "Minimal"
|
||||
case .compact: return "Compact"
|
||||
case .bubble: return "Bubble"
|
||||
case .grid: return "Grid"
|
||||
}
|
||||
}
|
||||
|
||||
var isGridLayout: Bool {
|
||||
self == .grid
|
||||
}
|
||||
}
|
||||
|
||||
class UserDefaultsStore {
|
||||
enum Keys: String {
|
||||
case savedOnboardingData
|
||||
@@ -45,6 +67,7 @@ class UserDefaultsStore {
|
||||
case hasActiveSubscription
|
||||
case lastVotedDate
|
||||
case votingLayoutStyle
|
||||
case dayViewStyle
|
||||
|
||||
case contentViewCurrentSelectedHeaderViewBackDays
|
||||
case contentViewHeaderTag
|
||||
|
||||
Reference in New Issue
Block a user