diff --git a/src/pandios/Pandios/ContentView.swift b/src/pandios/Pandios/ContentView.swift index ebcc7190..27211e4e 100644 --- a/src/pandios/Pandios/ContentView.swift +++ b/src/pandios/Pandios/ContentView.swift @@ -69,7 +69,8 @@ struct ContentView: UIViewRepresentable { } mtkView.framebufferOnly = false - + mtkView.drawableSize = mtkView.frame.size + mtkView.onResize = { newDrawableSize in let newWidth = UInt32(newDrawableSize.width) let newHeight = UInt32(newDrawableSize.height)