- SwiftUI + async/await architecture - Barcode scanning with AVFoundation - Product display with score ring, NOVA badge, nutrition - Alternatives with sort/filter - Auth (login/register) - Favorites & history - Account management - Dark theme - Connected to food.payfrit.com API (Open Food Facts proxy) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
283 B
Swift
14 lines
283 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct PayfritFoodApp: App {
|
|
@StateObject private var appState = AppState()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView()
|
|
.environmentObject(appState)
|
|
.preferredColorScheme(.dark)
|
|
}
|
|
}
|
|
}
|