The HCBackGestureProxy provides a simple way to enable or disable the interactive “back” gesture in your iOS app.
Installation
To use HCBackGestureProxy in your project, simply add the following line to your Podfile:
pod 'HCPopBackGestureProxy'
Then, run the following command:
pod install
Usage
Once you have installed HCBackGestureProxy, you can start using it in your app. Import it in the relevant files:
import HCPopBackGestureProxy
Then, create an instance of HCBackGestureProxy:
let backGestureProxy = HCBackGestureProxy()
By default, the back gesture is enabled. You can disable it by calling:
backGestureProxy.isEnabled = false
To enable the back gesture, use:
backGestureProxy.isEnabled = true
Additional Configuration
You can also customize the behavior of HCBackGestureProxy by adjusting its properties:
threshold
This property sets the threshold for the activation of the back gesture. The default value is 50.
backGestureProxy.threshold = 100
edgeInsets
Using this property, you can define the edge insets for the back gesture activation area. The default value is UIEdgeInsets.zero.
backGestureProxy.edgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 0)
Contact
If you have any questions or suggestions, feel free to reach out to us at support@example.com.