Skip to content

Commit 8bdfb67

Browse files
authored
chore(core): resolve swift 6 errors in dev menu code (#3692)
1 parent c04ae94 commit 8bdfb67

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Amplify/DevMenu/AmplifyDevMenu.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import UIKit
1212

1313
/// Presents a developer menu using the provided `DevMenuPresentationContextProvider`
1414
/// upon notification from a `TriggerRecognizer`. Default recognizer is a `LongPressGestureRecognizer`
15+
@MainActor
1516
public final class AmplifyDevMenu: DevMenuBehavior, TriggerDelegate {
1617

1718
weak var devMenuPresentationContextProvider: DevMenuPresentationContextProvider?

AmplifyTests/DevMenuTests/GestureRecognizerTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class GestureRecognizerTests: XCTestCase {
2222
/// - Then:
2323
/// - It should return true
2424

25+
@MainActor
2526
func testGestureRecognizerAddedToWindow() {
2627
let contextProvider = MockDevMenuContextProvider()
2728
let longPressGestureRecognizer =

0 commit comments

Comments
 (0)