What substitute mechanism could I use to determine visibility status of an AUv3 on macOS?
I did some testing as well, none...
Get the complete feedback created by user NikoloziApps here:
After a few email exchanges with an engineer from Apple Developer Technical Support, Case-ID: 1997379, and experimentation, it has become clear that a subclass of AUViewController when used in a MacCatalyst AUv3 plug-in doesn't receive viewWill/DidAppear/Disappear callbacks. SwiftUI’s onAppear, onDisappear and onChange of scenePhase, also aren't getting called. However, when it's a pure macOS AUv3 then it works as expected. And things work correctly on iOS
Reported via FB12145974, and I've just created FB13410524, please do the same and include both refs.
The issue is also mentioned here on both topics:
AudioUnits v3 OS X: How AU PlugIn may detect that AU Host did close window
Plugin-editors still redraw even when closed on M1/Logic: https://forum.juce.com/t/plugin-editors-still-redraw-even-when-closed-on-m1-logic/45268