-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #817 from DeluxeAlonso/configuration/deployment-ta…
…rget-update Configuration/deployment target update to iOS15
- Loading branch information
Showing
4 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
UpcomingMovies/Helpers/Extensions/UIApplication+Extensions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// UIApplication+Extensions.swift | ||
// UpcomingMovies | ||
// | ||
// Created by Alonso on 21/01/24. | ||
// Copyright © 2024 Alonso. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIApplication { | ||
|
||
var keyWindow: UIWindow? { | ||
connectedScenes | ||
.filter { $0.activationState == .foregroundActive } | ||
.first(where: { $0 is UIWindowScene }) | ||
.flatMap({ $0 as? UIWindowScene })?.windows | ||
.first(where: \.isKeyWindow) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters