Post

Replies

Boosts

Views

Activity

Comment on MacCatalyst Multi window App not calling Scene Delegate
I have tried using the window event to detect change in focus: nc.addObserver(forName: .init("NSWindowDidBecomeMainNotification"), object: nil, queue: nil) { notification in print("This window became focused:", notification.object!) self.turnoffConstraintForTextSideStack() } This event posts on any of the open scenes changing focus, and my routine executes, changing the layout to Catalyst mode, then, in a few milliseconds, it changes itself back to the iOS configuration, so so redraw/relayout is occurring after my desired layout. Can I stop the reversion to iOS layout? or failing that, How can I promote/push my layout to be final, after viewWillAppear?
Jun ’21