There is a taptic which on long press user get vibrate felling with device for a second.
My device is iPhone 6s version 12.6.1 hope it support the taptic.
@IBAction func onClick(_ sender: Any) {
let generator = UIImpactFeedbackGenerator(style: .heavy)
generator.prepare()
generator.impactOccurred()
// Do Something
}
The above code is not working!
On Button click I want to use the taptic to make user user tap the button! Same thing I would like to use for picker view and other actions where user validate there inputs.
Let me understand is taptic is same small mechanical movementum?