How can I a get a notification when user resize the window while:
NotificationCenter.default.addObserver(self, selector: #selector(function), name: NSWindowDidResizeNotification, object: nil)
is unavailable in Mac Catalyst
Just like in iOS. Use windowScene(_:didUpdate:interfaceOrientation:traitCollection:)
in your window scene delegate, or implement viewWillTransition(to:with:)
in your view controllers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With