Thanks for the great feedback. I have switched to nesting my UIView in a UIViewController which I then add as a child view controller to another controller. I can successfully override the child view controller's trait collection, but the child view controller's view trait collection property does not seem to inherit the change and so when I call layoutIfNeeded(), the layout does not reflect the new trait collection. Can you suggest how to ensure the child view controller's view inherits the setOverrideTraitCollection change?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: