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,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)