Ios swift – How to access AppDelegate from a class marked with @Observable
I have a class that adopts the ObservableObject protocol that I want to refactor. Instead of adopting the protocol the class should be marked with the @Observable macro. Now I'm encountering a problem with one of the class's properties: @UIApplicationDelegateAdaptor(AppDelegate.self)…