I finally found the culprit!
»Dead Code Stripping« was set to »Yes«. If I set it to no, the toolbar magically appears and the delegate is set properly.
Can anyone explain to me why that would happen or is it a bug?
My toolbar code is wrapped in a compiler condition #if targetEnvironment(macCatalyst)…#endif but that's the only thing I could think of.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: