For everyone else following along, here is a ZIP file that contains the project:
https://files.iconfactory.net/craig/bugs/Resizer.zip
And the steps to reproduce the issue:
Open the attached project (Resizer.zip) in Xcode 27.0 beta 2 (27A5209h)
Build & run the project in Device Hub Version 27.0 (244.2.3) using an iPhone 17 device
Enter resize mode
Resize the interface to 1280 x 960
Expected results:
The NSAssert at line 31 or line 71 should fire because the horizontal size class is larger than compact.
Actual results:
The NSAssert never fires because the horizontal size class is always compact.
Note:
This behavior does not occur on the iPad: the asserts fire because the size class changes as the window is resized.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: