I need to disable control center on one key view in case i use "swipe up" gesture for navigation on that view controller
All that is required to Disable Control Center Access from Lock Screen is to go to Settings > Touch ID & Passcode and enter Lock Screen Passcode, when prompted. On the next screen, scroll down to “Allow Access When Locked” section and move the toggle next to Control Center to OFF position.
Add the following to your Info.plist:
<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
When you "swipe up" it avoid to reveal the control centre. The gestures work normally for your application and it shows only a grabber
Best workaround I've found for this is to present the view controller in full screen. (I'm not talking about the deprecated Full Screen property)
By doing so you force the notification \ control center to be triggered with two swipes instead of one. If the user swipes up or down he'll see a small arrow instead of the all notification\control center. Another swipe on that arrow will open the center view. There's no public way to disable it completely so this is your best bet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With