All Projects → russo-programmisto → Sensitive

russo-programmisto / Sensitive

Licence: MIT license
Special way to work with gestures in iOS

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to Sensitive

spockpy
✊ ✋ ✌️ ☝️ 🖖 A Python hand gesture recognition library for Kinetic User Interface (KUI).
Stars: ✭ 50 (-90.89%)
Mutual labels:  gesture-recognizer, gesture
btt
Low level MacOS management in JavaScript via BetterTouchTool
Stars: ✭ 92 (-83.24%)
Mutual labels:  gesture
Watchshaker
Simple motion detector for ⌚️ (watchOS) shake gesture.
Stars: ✭ 184 (-66.48%)
Mutual labels:  gesture
TinderUISamples
[ING] - TinderのようなUIを様々な実装で実現してみる
Stars: ✭ 30 (-94.54%)
Mutual labels:  gesture-recognizer
Gestureviews
ImageView and FrameLayout with gestures control and position animation
Stars: ✭ 2,257 (+311.11%)
Mutual labels:  gesture
Interpolate
Swift interpolation for gesture-driven animations
Stars: ✭ 1,809 (+229.51%)
Mutual labels:  gesture-recognizer
Zingtouch
A JavaScript touch gesture detection library for the modern web
Stars: ✭ 2,019 (+267.76%)
Mutual labels:  gesture
iOSProjects
It's project that contains different applications developed with Swift 5.7 👨‍💻👩🏼‍💻🧑🏿‍💻
Stars: ✭ 122 (-77.78%)
Mutual labels:  gesture-recognizer
GIMLeT
GIMLeT – Gestural Interaction Machine Learning Toolkit
Stars: ✭ 33 (-93.99%)
Mutual labels:  gesture
Transferee
一个帮助您完成从缩略视图到原视图无缝过渡转变的神奇框架
Stars: ✭ 2,697 (+391.26%)
Mutual labels:  gesture
Swipycell
Easy to use UITableViewCell implementing swiping to trigger actions.
Stars: ✭ 230 (-58.11%)
Mutual labels:  gesture
Hovertouchview
Stimulate Apple's Force Touch or 3D Touch on Android App with Hover Gesture
Stars: ✭ 192 (-65.03%)
Mutual labels:  gesture
GestureControlledCamera2D
A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.
Stars: ✭ 39 (-92.9%)
Mutual labels:  gesture
Lantern
基于Swift的高可用视图框架
Stars: ✭ 181 (-67.03%)
Mutual labels:  gesture
Intel-Realsense-Hand-Toolkit-Unity
Intel Realsense Toolkit for Hand tracking and Gestural Recognition on Unity3D
Stars: ✭ 72 (-86.89%)
Mutual labels:  gesture
Meiwidgetview
🔥一款汇总了郭霖,鸿洋,以及自己平时收集的自定义控件集合库(小红书)
Stars: ✭ 2,060 (+275.23%)
Mutual labels:  gesture
Fusuma
Multitouch gestures with libinput driver on Linux
Stars: ✭ 2,870 (+422.77%)
Mutual labels:  gesture
Simplify.Web
Moved to https://github.com/SimplifyNet. Simplify.Web is a lightweight and fast server-side .NET web-framework based on MVC and OWIN for building HTTP based web-applications, RESTful APIs etc.
Stars: ✭ 23 (-95.81%)
Mutual labels:  simplify
fusuma-plugin-tap
Tap and Hold gestures plugin for Fusuma
Stars: ✭ 16 (-97.09%)
Mutual labels:  gesture
react-native-pinchable
Instagram like pinch to zoom for React Native
Stars: ✭ 187 (-65.94%)
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].