Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow custom assignment of rootView to rootViewController (#37873)
Summary: To use a native Drawer on iPad, I can override `createRootViewController` to create a `UISplitViewController` instead of a `UIViewController`, but I then need to assign the rootView with ```objective-c [splitViewController setViewController:mainVC forColumn:UISplitViewControllerColumnSecondary]; ``` which I can currently only do by copy pasting the entire `didFinishLaunchingWithOptions` and only replacing the assignment ```objective-c rootViewController.view = rootView; ``` In an attempt of making it easier for developers to use a native drawer in iOS, being able to override the assignment would make it easier. bypass-github-export-checks ## Changelog: [iOS] [ADDED] - added override method with default implementation Pull Request resolved: #37873 Test Plan: Tested on iPad iOS 16 simulator Reviewed By: cortinico Differential Revision: D46761919 Pulled By: cipolleschi fbshipit-source-id: c3ece0170d732133edc08f220a2f9a67da93815a
- Loading branch information