Gesture: System gesture gate timed out. in SwiftUI
Hello, SwiftUI developers, recently I found a warning in my Xcode console while running a SwiftUI app. The warning is Gesture: System gesture gate timed out.
When does this occur?
This is still confusing, but I have got this in my SwiftUI project where I set a gesture.
.gesture( LongPressGesture(minimumDuration: 0.5) .onEnded { _ in // Your action goes here }
I set a gesture in my project using the above code and everything is working fine. The only issue is that when I long press on the edges of the screen I get Gesture: System gesture gate timed out.
One more thing I noticed is that on long press ( that is set as minimumDuraion: 0.5
) at the bottom of the screen (middle portion), I get two warnings in the console and those are:
- Gesture: System gesture gate timed out.
- Touch: System gesture gate timed out.
I am getting these at the same time.
For me, it has not made any issues till now, but I am afraid that this might be a serious issue when dealing with drag features in SwiftUI.
This can also cause trouble while using the swipe (from the left edges of the screen) to go back feature.
For now, there is no way that you can remove this warning.
Apple may give an Update to resolve the issue.
The possible reason is on long press gesture, it is looking for some built-in functionality of iOS newer versions. But that has a bug in it.
The timeout warning indicates that there might be some functionality that was intended to start but due to the bug, it got time out.
Leave a Reply