diff --git a/Amplify/DevMenu/AmplifyDevMenu.swift b/Amplify/DevMenu/AmplifyDevMenu.swift index 796027de86..b54767e3db 100644 --- a/Amplify/DevMenu/AmplifyDevMenu.swift +++ b/Amplify/DevMenu/AmplifyDevMenu.swift @@ -12,6 +12,7 @@ import UIKit /// Presents a developer menu using the provided `DevMenuPresentationContextProvider` /// upon notification from a `TriggerRecognizer`. Default recognizer is a `LongPressGestureRecognizer` +@MainActor public final class AmplifyDevMenu: DevMenuBehavior, TriggerDelegate { weak var devMenuPresentationContextProvider: DevMenuPresentationContextProvider? diff --git a/AmplifyTests/DevMenuTests/GestureRecognizerTests.swift b/AmplifyTests/DevMenuTests/GestureRecognizerTests.swift index 72dad242cf..5c82b10d6f 100644 --- a/AmplifyTests/DevMenuTests/GestureRecognizerTests.swift +++ b/AmplifyTests/DevMenuTests/GestureRecognizerTests.swift @@ -22,6 +22,7 @@ class GestureRecognizerTests: XCTestCase { /// - Then: /// - It should return true + @MainActor func testGestureRecognizerAddedToWindow() { let contextProvider = MockDevMenuContextProvider() let longPressGestureRecognizer =