Skip to content

Commit

Permalink
xrOS: fixed runtime warning
Browse files Browse the repository at this point in the history
This was missing in #2683, these methods need to be invoked from the `@MainActor`.
  • Loading branch information
NachoSoto committed Jun 22, 2023
1 parent 16f3437 commit cbe132e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extension UIApplication {
@available(watchOS, unavailable)
@available(watchOSApplicationExtension, unavailable)
@available(tvOS, unavailable)
@MainActor
var currentWindowScene: UIWindowScene? {
var scenes = self
.connectedScenes
Expand Down
1 change: 1 addition & 0 deletions Sources/Misc/SystemInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ extension SystemInfo {
@available(watchOS, unavailable)
@available(watchOSApplicationExtension, unavailable)
@available(tvOS, unavailable)
@MainActor
var currentWindowScene: UIWindowScene {
get throws {
let scene = self.sharedUIApplication?.currentWindowScene
Expand Down

0 comments on commit cbe132e

Please sign in to comment.