FIX: Silences error due to metallib on resizing of window

This commit is contained in:
Etienne Roesch 2025-03-31 11:47:45 +01:00
parent c946f6577f
commit d3b066218f
2 changed files with 16 additions and 1 deletions

View file

@ -121,7 +121,11 @@ struct ContentView: View {
}
.padding()
.frame(maxHeight: .infinity)
// Removed fixed frame here to allow dynamic window sizing
.onAppear {
// Silences error due to metallib on resizing of window
let device = MTLCreateSystemDefaultDevice()
_ = device?.makeDefaultLibrary()
}
}
}