SPB Git

Repository Public

QyvoraApp.swift 2.5 KB 71 lines swift

1// =============================================================================2//                  SP BOUCHER | SOFTWARE & RESEARCH3//             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// Project          : QYVORA7// File             : App/Sources/QyvoraApp.swift8// Module           : Sources9// Repository       : https://git.spboucher.ai/qyvora10// Project Website  : Not specified11// Created          : 2026-12-0412// Last Modified    : 2026-12-0413//14// Author           : Simon-Pierre Boucher15// Position         : Professor of Finance16// Institution      : Université du Québec en Outaouais (UQO)17// Organization     : SP Boucher18// Website          : https://spboucher.ai19// Git              : https://git.spboucher.ai20//21// Preferred Contact: contact@spboucher.ai22// Development      : dev@spboucher.ai23// Support          : support@spboucher.ai24// Security/Admin   : admin@spboucher.ai25//26// Copyright (c) 202627// Simon-Pierre Boucher28// All rights reserved where applicable. This file is governed by the29// applicable project license, copyright notices and relevant law.30// Existing third-party rights and notices remain unaffected.31//32// License          : None specified (no license file in this repository)33//34// Do not embed credentials, private keys, access tokens,35// certificates or confidential personal information.36//37// =============================================================================38// END OF SP BOUCHER SOURCE HEADER39// =============================================================================4041import SwiftUI42import QyvoraUI4344@main45struct QyvoraApp: App {46    /// Refuses keyboard extensions for the whole application (QYV-APP-005).47    @UIApplicationDelegateAdaptor(QyvoraAppDelegate.self) private var delegate48    @State private var model: AppModel49    @State private var wallet = WalletStore()50    @AppStorage(AppAppearance.storageKey) private var appearance: AppAppearance = .system5152    init() {53        #if DEBUG54        _model = State(initialValue: DebugLaunch.makeModel())55        #else56        _model = State(initialValue: AppModel())57        #endif58    }5960    var body: some Scene {61        WindowGroup {62            RootView()63                .environment(model)64                .environment(wallet)65                .task { wallet.start() }66                .preferredColorScheme(appearance.colorScheme)67                .tint(QColor.violet)68        }69    }70}71
Files main
Menu

Theme