iOS: Default-initialize mtkView drawable size

This commit is contained in:
wheremyfoodat 2025-06-29 23:25:31 +03:00
parent adcd03d31e
commit cae79e43ca

View file

@ -69,6 +69,7 @@ struct ContentView: UIViewRepresentable {
} }
mtkView.framebufferOnly = false mtkView.framebufferOnly = false
mtkView.drawableSize = mtkView.frame.size
mtkView.onResize = { newDrawableSize in mtkView.onResize = { newDrawableSize in
let newWidth = UInt32(newDrawableSize.width) let newWidth = UInt32(newDrawableSize.width)