An open API service indexing awesome lists of open source software.

https://github.com/kenanatmaca/kdeepgesture

İOS Deep Press Gesture and Taptic 📳
https://github.com/kenanatmaca/kdeepgesture

Last synced: about 1 month ago
JSON representation

İOS Deep Press Gesture and Taptic 📳

Awesome Lists containing this project

README

          

# KDeepGesture
İOS Deep Press Gesture and Taptic 📳

#### Use

```Swift
let gesture = KDeepGesture(target: self, action: #selector(booom), root: self.view)
gesture.threshold = 0.60
box.addGestureRecognizer(gesture)
```

```Swift
func booom(_ sender:KDeepGesture) {

if sender.isThreshold {
// code
}
}
```

##### Get press time & press scale

```Swift
sender.pressTime
sender.scale
```

##### Use Taptic feedback

- [X] (Support iphone 7/7plus)

```Swift
sender.taptic.impactTap(.light) // .light, .medium, .heavy
sender.taptic.notificationTap(.success) // .error, .success, .warning
sender.taptic.tap()
```