A Swift library that enables interactive dismissal of UIViewControllers and UIViews using pan gestures in any direction.
PanSlip is a Swift library for iOS that enables interactive dismissal of UIViewControllers and UIViews using pan gestures. It solves the problem of adding intuitive, gesture-based dismissals without writing complex gesture recognizer code, supporting swipes in all four directions.
iOS developers building apps with custom modal presentations, drawers, or overlay views that benefit from swipe-to-dismiss interactions.
Developers choose PanSlip for its dead-simple API, support for both views and view controllers, and flexibility in gesture direction and sensitivity—all with minimal boilerplate.
Use PanGesture to dismiss view on UIViewController and UIView
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a consistent ps.enable method for both UIViewController and UIView, reducing boilerplate and simplifying implementation across different components, as shown in the usage examples.
Supports swipes in all four directions (left, right, top, bottom), enabling versatile UI designs for modal dismissals or overlay views, demonstrated in the GIFs.
Offers minimal setup with enable/disable and slip methods, aligning with the project's philosophy of minimalism and native iOS feel.
Allows fine-tuning of swipe thresholds via the percentThreshold property, giving developers control over dismissal sensitivity without complex gesture handling.
Focuses solely on pan-to-dismiss gestures without built-in support for other interactions like taps, custom animations during swipes, or handling complex gesture hierarchies.
Does not address potential conflicts with existing gesture recognizers, such as those in scroll views or navigation controllers, which could lead to broken user experiences.
The README covers basics but lacks advanced examples, troubleshooting guides, or details on edge cases like accessibility or performance optimizations.