Enable "GraphReuseLogging" for Debug build (#2203)

This commit is contained in:
Kyle 2024-10-22 15:48:18 +08:00 committed by GitHub
parent 15a6fd6f1c
commit 110906e69a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,14 @@ struct IceCubesApp: App {
@State var isSupporter: Bool = false @State var isSupporter: Bool = false
init() {
#if DEBUG
// Enable "GraphReuseLogging" for debugging purpose
// subsystem: "com.apple.SwiftUI" category: "GraphReuse"
UserDefaults.standard.register(defaults: ["com.apple.SwiftUI.GraphReuseLogging": true])
#endif
}
var body: some Scene { var body: some Scene {
appScene appScene
otherScenes otherScenes