Subclass new SwiftUI NSWindow?

Hi,

in order to adopt the new SwiftUI App Lifecycle and update my old UI to the new BigSur I made some changes. I can now move to the trash my old AppDelegate and my app is working almost fine with a great improvement in UI look'n feel.

But I had a NSWindow subclass with some methods for handle NSEvents (as scrollWheel: with event) to perform some tasks in the UI.

It is possible to have the same NSWindow subclass by adopting the new SwiftUI App lifecycle?

Thanks in advance.
Subclass new SwiftUI NSWindow?
 
 
Q