File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 798798 29B97313FDCFA39411CA2CEA /* Project object */ = {
799799 isa = PBXProject;
800800 attributes = {
801- LastUpgradeCheck = 1130 ;
801+ LastUpgradeCheck = 1140 ;
802802 ORGANIZATIONNAME = "Sean Escriva";
803803 TargetAttributes = {
804804 1D6058900D05DD3D006BFB54 = {
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments