Bubble/Threaded/ThreadedApp.swift

30 lines
749 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 {
2024-02-11 16:36:58 +01:00
// Tips.showAllTipsForTesting()
2024-02-08 08:34:17 +01:00
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"
}