Skip to content

Commit 77e0431

Browse files
committed
Allow compiling with older Swift versions
1 parent cb12acc commit 77e0431

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/UITestsHostApp/StatusBarStyle/RootView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ struct RootView: View {
1616
}
1717
}
1818

19+
@MainActor // for below Swift 6.0
1920
private func navigateToDetail() {
2021
let controller = HostingController(rootView: DetailView())
2122
controller.statusBarStyle = .lightContent
@@ -44,6 +45,7 @@ struct DetailView: View {
4445
dismiss.wrappedValue.dismiss()
4546
}
4647

48+
@MainActor // for below Swift 6.0
4749
private func navigateToDetail() {
4850
let controller = HostingController(rootView: DetailView())
4951
controller.statusBarStyle = .lightContent

0 commit comments

Comments
 (0)