Skip to content

Commit

Permalink
fix: solve issue that ScreenFetcher is not compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOF committed Jan 18, 2024
1 parent c3b9d1f commit 0da5c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/AppleFetcher/Implement/ScreenFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extension ScreenFetcher {
Promise.async(on: .main) { () -> UIInterfaceOrientation in
if #available(iOS 13.0, macCatalyst 13.0, tvOS 13.0, *) {
return UIApplication.shared.connectedScenes
.deepFilter { $0.activationState == .foregroundActive }
.filter { $0.activationState == .foregroundActive }
.first { $0 is UIWindowScene }
.flatMap { $0 as? UIWindowScene }?
.interfaceOrientation ?? .portrait
Expand Down

0 comments on commit 0da5c05

Please sign in to comment.