A Swift library that simplifies gesture handling in iOS with a declarative API, replacing UIGestureRecognizer's target/action pattern.
Sensitive is a Swift library that simplifies gesture handling in iOS applications. It replaces UIKit's verbose UIGestureRecognizer target/action pattern with a declarative API, allowing developers to attach gesture handlers like `onTap` or `onSwipe` directly to UIView instances. This reduces boilerplate code and makes gesture implementation more intuitive and maintainable in Swift projects.
iOS developers building Swift applications who need a cleaner, more modern way to handle gestures without the overhead of traditional UIKit gesture recognizers.
Developers choose Sensitive for its declarative, chainable API that streamlines gesture setup, improves code readability, and reduces boilerplate compared to native UIGestureRecognizer approaches, all while maintaining full configurability and support for simultaneous gestures.
Special way to work with gestures in iOS
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows attaching gestures like onTap directly to UIViews with chainable methods, eliminating the boilerplate of UIGestureRecognizer target/action setup and improving code readability.
Provides a configure closure to set gesture properties such as numberOfTapsRequired or direction inline, making gesture setup concise and Swift-friendly, as shown in the README examples.
Supports enabling multiple gestures to work together on the same view using recognizeSimultaneously, simplifying complex gesture interactions without extra UIKit code.
Covers all standard UIKit gestures including tap, long press, pan, pinch, rotation, swipe, and screen edge pan, handling common use cases without gaps.
Designed exclusively for UIKit and lacks SwiftUI support, making it irrelevant for modern iOS projects adopting Apple's declarative framework, as evident from the iOS 9.0+ requirement and no SwiftUI mention.
Introduces a third-party library for functionality that UIKit already provides, which could be seen as unnecessary overhead for simple projects or teams avoiding extra dependencies.
Relies on wrapping standard gesture recognizers, which might lag behind iOS updates or have compatibility issues, and the project's activity (last update not specified) raises concerns about long-term support.