All Projects → perfectly-simplified → Sensitive

perfectly-simplified / Sensitive

Licence: mit
Special way to work with gestures in iOS

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Sensitive

XamarinFormsGesture
Xamarin Form Gesture Effects
Stars: ✭ 85 (-84.46%)
Mutual labels:  gesture
Arkit
ARKit Base Project. Place virtual objects based on WWDC example project
Stars: ✭ 297 (-45.7%)
Mutual labels:  gesture
Better Gesture
A gesture library use for pc, mobile, vue, and mini programs
Stars: ✭ 419 (-23.4%)
Mutual labels:  gesture
spockpy
✊ ✋ ✌️ ☝️ 🖖 A Python hand gesture recognition library for Kinetic User Interface (KUI).
Stars: ✭ 50 (-90.86%)
Mutual labels:  gesture
Gnome Shell Extended Gestures
Better touchpad gesture handling for GNOME
Stars: ✭ 281 (-48.63%)
Mutual labels:  gesture
Giraffeplayer2
out of the box android video player(support lazy load, ListView/RecyclerView and hight performance)
Stars: ✭ 344 (-37.11%)
Mutual labels:  gesture
Speech driven gesture generation with autoencoder
This is the official implementation for IVA '19 paper "Analyzing Input and Output Representations for Speech-Driven Gesture Generation".
Stars: ✭ 76 (-86.11%)
Mutual labels:  gesture
Nanogallery2
a modern photo / video gallery and lightbox [JS library]
Stars: ✭ 488 (-10.79%)
Mutual labels:  gesture
Showtime
The easiest way to show off your iOS taps and gestures for demos and videos.
Stars: ✭ 281 (-48.63%)
Mutual labels:  gesture
React Native Gesture Handler
Declarative API exposing platform native touch and gesture system to React Native.
Stars: ✭ 4,487 (+720.29%)
Mutual labels:  gesture
react-gesture-gallery
a react image gallery with gesture support
Stars: ✭ 14 (-97.44%)
Mutual labels:  gesture
logitech-m720-config
A configuration script for Logitech M720 that remaps mouse buttons (Linux)
Stars: ✭ 59 (-89.21%)
Mutual labels:  gesture
Imucalibration Gesture
calibration for Imu and show gesture
Stars: ✭ 382 (-30.16%)
Mutual labels:  gesture
PDollar-Unity
PDollar algorithm Unity friendly
Stars: ✭ 99 (-81.9%)
Mutual labels:  gesture
React Native Swipe Gestures
4-directional swipe gestures for react-native
Stars: ✭ 471 (-13.89%)
Mutual labels:  gesture
creviceapp
Multi purpose utility which supports gestures with mouse and keyboard.
Stars: ✭ 22 (-95.98%)
Mutual labels:  gesture
Alloyfinger
Super tiny size multi-touch gestures library for the web.    You can touch this →
Stars: ✭ 3,244 (+493.05%)
Mutual labels:  gesture
React Native Reanimated
React Native's Animated library reimplemented
Stars: ✭ 5,501 (+905.67%)
Mutual labels:  gesture
Comfortable Swipe
Comfortable 3-finger and 4-finger swipe gesture using Xdotool in native C++
Stars: ✭ 483 (-11.7%)
Mutual labels:  gesture
Patternlocker
Android 图形解锁/手势解锁 / 手势密码 / 图案密码 / 九宫格密码
Stars: ✭ 409 (-25.23%)
Mutual labels:  gesture

Sensitive

At a Glance

Sensitive is a library that simplifies work with gestures in iOS. Forget about target/action pattern of primitive UIGestureRecognizer. With Sensitive you can call onTap, onPinch, onSwipe on any UIView instance and implement handler for the gesture. That's all that you should know to start. For details, see Usage section.

How To Get Started

  • Copy content of Source folder to your project.

or

  • Use Sensitive cocoapod.

Requirements

  • iOS 9.0 and later
  • Xcode 9.0 and later
  • Swift 4.1 or later

Usage

Adding Gesture Recognizers to View

All gestures are available via special variables that you can call on any UIView instance. Examples:

view.onTap
    .configure(with: { (gestureRecognizer) in
        // Configure `UITapGestureRecognizer` instance
        gestureRecognizer.numberOfTapsRequired = 2
    })
    .handle { (gestureRecognizer) in
        // Handle tap on view
        gestureRecognizer.view!.backgroundColor = .green
    }

view.onSwipe
    .configure(with: { (gestureRecognizer) in
        // Configure `UISwipeGestureRecognizer` instance
        gestureRecognizer.direction = .left
    })
    .handle { (gestureRecognizer) in
        // Handle tap on view
        gestureRecognizer.view!.backgroundColor = .green
    }

Full list of available gestures:

  • onTap
  • onLongPress
  • onPan
  • onPinch
  • onRotation
  • onSwipe
  • onScreenEdgePan

Simultaneous Recognition

If you need few gestures to work together on the same view, you can also use recognizeSimultaneously method:

view.onTap
    .handle { (gestureRecognizer) in
        // Your implementation here...
    }
    .recognizeSimultaneously(true)

view.onPinch
    .handle { (gestureRecognizer) in
        // Your implementation here...
    }
    .recognizeSimultaneously(true)

License

Sensitive is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].