Bubble/Threaded/ThreadedApp.swift

30 lines
747 B
Swift
Raw Normal View History

2023-12-29 11:17:37 +01:00
//Made by Lumaa
import SwiftUI
2024-02-08 08:34:17 +01:00
import TipKit
2023-12-29 11:17:37 +01:00
@main
struct ThreadedApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.background(Color.appBackground)
.onAppear {
HapticManager.prepareHaptics()
}
2024-02-08 08:34:17 +01:00
.task {
Tips.showAllTipsForTesting()
try? Tips.configure([
.displayFrequency(.immediate),
.datastoreLocation(.applicationDefault)
])
}
2023-12-29 11:17:37 +01:00
}
}
}
2024-01-27 08:56:54 +01:00
extension AppInfo {
static var appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown"
}