Hi! I saw what you mention in this sample code [https://developer.apple.com/documentation/metal/basic_tasks_and_concepts/using_metal_to_draw_a_view_s_contents?language=objc]. If I do the same in my test app then I get two calls: the explicit one and after it, the one that comes directly from NSApplicationMain->[MTKView _resizeDrawable]. After this second call the behavior is the expected and no more calls to drawableSizeWillChange are received. My implementation doesn't have the explicit call and I always receive the call from NSApplicationMain->[MTKView _resizeDrawable] on startup.
I removed the explicit call in the sample code and it doesn't receive any call to drawableSizeWillChange when autoResizeDrawable = NO.
What is more annoying is that it doesn't happen always.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: