Skip to content

Commit

Permalink
chore(core): resolve swift 6 errors in dev menu code (#3692)
Browse files Browse the repository at this point in the history
  • Loading branch information
phantumcode authored May 16, 2024
1 parent c04ae94 commit 8bdfb67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Amplify/DevMenu/AmplifyDevMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
1 change: 1 addition & 0 deletions AmplifyTests/DevMenuTests/GestureRecognizerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class GestureRecognizerTests: XCTestCase {
/// - Then:
/// - It should return true

@MainActor
func testGestureRecognizerAddedToWindow() {
let contextProvider = MockDevMenuContextProvider()
let longPressGestureRecognizer =
Expand Down

0 comments on commit 8bdfb67

Please sign in to comment.