- Add global IS_DEV flag controlling API endpoint (dev vs biz.payfrit.com), dev ribbon banner, and magic OTP hints - Add diagonal orange DEV ribbon overlay (Widgets/DevRibbon.swift) - Replace app icon with properly centered dark-outline SVG on white background - Fix display name with InfoPlist.strings localization - Redesign business selection cards with initial letter, status pill, task count - Make businesses only tappable when pending tasks > 0 (dimmed otherwise) - Simplify LoginScreen and RootView to use IS_DEV directly - Fix hardcoded dev URLs to respect IS_DEV flag Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
364 B
Swift
18 lines
364 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct PayfritWorksApp: App {
|
|
@StateObject private var appState = AppState()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView()
|
|
.environmentObject(appState)
|
|
.devRibbon()
|
|
}
|
|
}
|
|
}
|
|
|
|
extension Color {
|
|
static let payfritGreen = Color(red: 0.133, green: 0.698, blue: 0.294)
|
|
}
|