mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-01-14 22:33:25 +01:00
[PR #107] [MERGED] Fix issue when getRootViewController would return nil
#125
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/UrbanApps/Armchair/pull/107
Author: @MartinMoizard
Created: 9/1/2017
Status: ✅ Merged
Merged: 9/9/2017
Merged by: @coneybeare
Base:
master← Head:swift3-and-root-fix📝 Commits (2)
2bdd30fMigrate to Swift 3eaebe86Fix issue whengetRootViewControllerwould returnnil📊 Changes
4 files changed (+34 additions, -24 deletions)
View changed files
📝
Example/AppDelegate.swift(+1 -1)📝
Example/ViewController.swift(+7 -7)📝
Source/Armchair.swift(+23 -13)📝
iOS Example.xcodeproj/project.pbxproj(+3 -3)📄 Description
Depending the way the application is built, getting the root view controller would eventually return a
nilvalue.This fix makes sure to recursively iterate over subviews of the window to find the rootViewController.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.