Rightpoint / BonMot

Beautiful, easy attributed strings in Swift
MIT License
3.54k stars 196 forks source link

Views not in the view hierarchy using wrong trait collection #399

Closed rzulkoski closed 3 years ago

rzulkoski commented 3 years ago

When flooding the view hierarchy with notifyContainedAdaptiveContentSizeContainers() in response to the UIContentSizeCategory.didChangeNotification notification there is an assumption that a view controllers view that is loaded but not yet in the view hierarchy will have the update trait collection available.

This is NOT the case.

The view controller does have the new trait collection, but its view and subviews will not have the new trait collection at this point.