Comment on SwiftUI - Determining Current Device and Orientation Do you really need code in deinit? Then deallocated the class is unsubscribed automatically. UI Frameworks SwiftUI Sep ’21