33 lines
882 B
Swift
33 lines
882 B
Swift
//Made by Lumaa
|
|
|
|
import SwiftUI
|
|
import TipKit
|
|
|
|
@main
|
|
struct ThreadedApp: App {
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
.background(Color.appBackground)
|
|
.onAppear {
|
|
HapticManager.prepareHaptics()
|
|
}
|
|
.task {
|
|
#if DEBUG
|
|
Tips.showAllTipsForTesting()
|
|
UserDefaults.standard.removeObject(forKey: "lastVersion")
|
|
#endif
|
|
|
|
try? Tips.configure([
|
|
.displayFrequency(.immediate),
|
|
.datastoreLocation(.applicationDefault)
|
|
])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
extension AppInfo {
|
|
static var appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown"
|
|
}
|