Files
platform/ios/Platform/Platform/PlatformApp.swift
Yusuf Suleman 028e308588
All checks were successful
Security Checks / dependency-audit (push) Successful in 14s
Security Checks / secret-scanning (push) Successful in 4s
Security Checks / dockerfile-lint (push) Successful in 4s
feat: in-app dark mode toggle (System / Light / Dark)
- AppearanceManager with UserDefaults persistence
- Three modes: System (follows iOS), Light, Dark
- Toggle in Home screen profile menu under "Appearance"
- Applied via .preferredColorScheme at app root
- Persists across app launches

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 20:22:35 -05:00

17 lines
399 B
Swift

import SwiftUI
@main
struct PlatformApp: App {
@State private var authManager = AuthManager()
@State private var appearance = AppearanceManager()
var body: some Scene {
WindowGroup {
ContentView()
.environment(authManager)
.environment(appearance)
.preferredColorScheme(appearance.mode.colorScheme)
}
}
}