I have a UIViewController that presents a UIPrintInteractionController when a user selects the print button on the UI. The problem is starting in iOS 18 (currently using beta 7) when the print controller is presented the UIViewController's viewWillAppear() is being called. This did not happen in earlier iOS releases and is causing unwanted behavior in the app. Is this a bug or will this be the behavior going forward?
iOS 18 Beta UIPrintInteractionController present issue
Could you please file a bug report with a sample app that reproduces the issue? Thanks!
Looking at it more, traitCollectionDidChange is actually being called (that in turn is calling viewDidAppear for some reason). I have -UITraitCollectionChangeLoggingEnabled YES and all of the generated logs state trait changes: (no changes)