UrbanApps / Armchair

A simple yet powerful App Review Manager for iOS and OSX in Swift
MIT License
1.2k stars 137 forks source link

Fix issue when `getRootViewController` would return `nil` #107

Closed MartinMoizard closed 7 years ago

MartinMoizard commented 7 years ago

Depending the way the application is built, getting the root view controller would eventually return a nil value.

This fix makes sure to recursively iterate over subviews of the window to find the rootViewController.

coneybeare commented 7 years ago

Thanks!