In a SwiftUI-lifecyle App I have two (viewless-)controllers that are owned by the App-struct itself.
Within an app with a delegate-based-lifecyle I would have used 'NSApplication.shared.delegate' to get acces to the App (and the two properties in it).
How do I accomplish the same with a SwiftUI-lifecyle?
Within an app with a delegate-based-lifecyle I would have used 'NSApplication.shared.delegate' to get acces to the App (and the two properties in it).
How do I accomplish the same with a SwiftUI-lifecyle?