SPB Git

spb/focale Public

Swift 100%
708 B · 33 lines swift
Raw Blame History
1//2//  FocaleApp.swift3//  Focale4//5//  Author: Simon-Pierre Boucher6//  Contact: contact@spboucher.ai7//89import SwiftData10import SwiftUI1112@main13struct FocaleApp: App {14    @State private var app: AppModel1516    init() {17        let model = AppModel()18        _app = State(initialValue: model)19        // BGTask registration must happen before the app finishes launching.20        IndexScheduler.shared.register(pipeline: model.indexPipeline)21    }2223    var body: some Scene {24        WindowGroup {25            RootView()26                .environment(app)27                .preferredColorScheme(.dark)28                .tint(DesignTokens.accent)29        }30        .modelContainer(IndexStore.container)31    }32}33