0

Running an IOS app under MacOS on an Apple M1 processor:

We are looking for a way to be notified when the app's window is resized by the user.

Agam
  • 39
  • 4
  • 1
    Does this answer your question? [Is there a UIView resize event?](https://stackoverflow.com/questions/4000664/is-there-a-uiview-resize-event) – Jean-Baptiste Yunès Jan 10 '22 at 15:55
  • Unfortunately not. It is a full screen app and the views are not notified of the window change (presumably because there would never be a window change on a physical iPad/iPhone). – Agam Jan 11 '22 at 16:08
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jan 19 '22 at 20:32

1 Answers1

1
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator

This function gets called for every change in window size for all 'flavors' of app compilation: IOS app (under MacOS on Apple M1), Mac Catalyst, etc.

Agam
  • 39
  • 4