From cae79e43ca31935f1280de491f927790922fa87c Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 29 Jun 2025 23:25:31 +0300 Subject: [PATCH] iOS: Default-initialize mtkView drawable size --- src/pandios/Pandios/ContentView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)