Skip to content

Commit 110906e

Browse files
authored
Enable "GraphReuseLogging" for Debug build (Dimillian#2203)
1 parent 15a6fd6 commit 110906e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

IceCubesApp/App/Main/IceCubesApp.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ struct IceCubesApp: App {
3434

3535
@State var isSupporter: Bool = false
3636

37+
init() {
38+
#if DEBUG
39+
// Enable "GraphReuseLogging" for debugging purpose
40+
// subsystem: "com.apple.SwiftUI" category: "GraphReuse"
41+
UserDefaults.standard.register(defaults: ["com.apple.SwiftUI.GraphReuseLogging": true])
42+
#endif
43+
}
44+
3745
var body: some Scene {
3846
appScene
3947
otherScenes

0 commit comments

Comments
 (0)