What UITraitCollection
does -[UIView systemLayoutSizeFittingSize:]
use, when it is not attached to view hierarchy? I think UIKit could guess it from [UIScreen mainScreen]
, but this looks ambiguous to me. Moreover, it will not take into account override in -[UIViewController setOverrideTraitCollection:forChildViewController:]
.
Asked
Active
Viewed 147 times
2

Oleksii Taran
- 348
- 3
- 10