I'm trying to build a game app with Swift that should disable swipe down ios reachability in a specific view controller how can I do that?
Asked
Active
Viewed 232 times
1 Answers
0
To be able to do this, you may need to override preferredScreenEdgesDeferringSystemGestures
to tell it the edge of the screen you want to prevent accepting gestures
so you can try:
override func preferredScreenEdgesDeferringSystemGestures() -> UIRectEdge {
return [.bottom]
}

Mohamed Emad Hegab
- 2,665
- 6
- 39
- 64