From f60e47fb042154555dc2a80229bc204821d2edf5 Mon Sep 17 00:00:00 2001 From: Andreas Bauer Date: Sun, 11 Aug 2024 15:49:18 +0200 Subject: [PATCH] MainActor annotation for Swift 5.10 --- .../UITests/TestApp/ViewModifierTests/ModuleWithModifier.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/UITests/TestApp/ViewModifierTests/ModuleWithModifier.swift b/Tests/UITests/TestApp/ViewModifierTests/ModuleWithModifier.swift index b88f120..3a771a5 100644 --- a/Tests/UITests/TestApp/ViewModifierTests/ModuleWithModifier.swift +++ b/Tests/UITests/TestApp/ViewModifierTests/ModuleWithModifier.swift @@ -36,7 +36,7 @@ struct MyModifier: ViewModifier { @State private var state = ModifierState() - private var alertBinding: Binding { + @MainActor private var alertBinding: Binding { Binding { module == nil && state.appeared } set: { _ in