Actually I did try the boolean on app launch (apparently developers think alike :)). It is still messy and unreliable. We do not have control over .onAppear and .onDisappear invocations by the framework in the context of an entire complexity of a view hierarcy. That is precisely why I hesitate to rely on them unless I really have to.
I am also hoping that gaps between SwiftUI and UIKit with be narrowed down in the upcoming WWDC. Thanks again for taking time out to respond.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: