34bc375705
The SwiftUI lifecycle wraps GDTViewController in a hosting controller that becomes the window's root VC. iOS queries the root VC for preferredScreenEdgesDeferringSystemGestures, prefersHomeIndicatorAutoHidden, and prefersStatusBarHidden, but the hosting controller doesn't delegate these to child VCs. This propagates the preference implementations onto the root VC's class at runtime using class_addMethod. (cherry picked from commit 0c8c425f9be73b3ff43b96e9998edb3608b743a0)