Skip to content

Commit 6630b76

Browse files
authored
Merge pull request #262 from MobileOrg/project-settings
Apply latest suggested project settings
2 parents 5e3a166 + 0dec6df commit 6630b76

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

Classes/Utilities/UIAlertController+MobileOrg.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,12 @@ extension UIAlertController {
4646

4747
private static var mo_presentingViewController: UIViewController? {
4848
let rootViewController = UIApplication.shared.delegate?.window??.rootViewController
49-
switch type(of: rootViewController) {
50-
case is UINavigationController.Type:
51-
guard let controller = (rootViewController as? UINavigationController)?.topViewController else { fallthrough }
49+
if let controller = (rootViewController as? UINavigationController)?.topViewController {
5250
return controller
53-
case is UITableViewController.Type:
54-
guard let controller = (rootViewController as? UITabBarController)?.selectedViewController else { fallthrough }
51+
} else if let controller = (rootViewController as? UITabBarController)?.selectedViewController {
5552
return controller
56-
default:
57-
return rootViewController
5853
}
54+
return rootViewController
5955
}
6056

6157
}

MobileOrg.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@
798798
29B97313FDCFA39411CA2CEA /* Project object */ = {
799799
isa = PBXProject;
800800
attributes = {
801-
LastUpgradeCheck = 1130;
801+
LastUpgradeCheck = 1140;
802802
ORGANIZATIONNAME = "Sean Escriva";
803803
TargetAttributes = {
804804
1D6058900D05DD3D006BFB54 = {

MobileOrg.xcodeproj/xcshareddata/xcschemes/All Tests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

MobileOrg.xcodeproj/xcshareddata/xcschemes/MobileOrg.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1140"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)