viewWillTransition not called on first widgetActiveDisplayModeDidChange

Originator:MichalKaluzny
Number:rdar://33001130 Date Originated:27-Jun-2017 11:57 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 11
Classification:UI/Usability Reproducible:Always
 
Summary:
Since iOS 11 we have been experiencing issues with our widget. From our testing it seems like the viewWillTransition method on widget’s UIViewController is not being called when the first call to widgetActiveDisplayModeDidChange happens. After than any calls to widgetActiveDisplayModeDidChange will trigger viewWillTransition though.

Steps to Reproduce:
1) Open attached project
2) Run the NotificationCenterWidget target

Expected Results:
Debugger console should have 2 lines printed:
1) widgetActiveDisplayModeDidChange was called
2) viewWillTransition was called

Actual Results:
Debugger console has just one line printed:
1) widgetActiveDisplayModeDidChange was called


Version:
iOS 11

Notes:
This happens only on the initial layout pass, after user manually taps on the “Show More” button, both of the methods are called.

This worked fine on iOS 10.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!