different home screen layouts

This commit is contained in:
Trey t
2025-12-13 09:18:57 -06:00
parent 4713192d55
commit 6adef2d6fc
5 changed files with 382 additions and 15 deletions

View File

@@ -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