I want to add haptic and sound to my custom keyboard.
Here is my code.
let generator = UIImpactFeedbackGenerator(style: .medium)
generator.prepare()
generator.impactOccurred()
What's wrong?
I want to add haptic and sound to my custom keyboard.
Here is my code.
let generator = UIImpactFeedbackGenerator(style: .medium)
generator.prepare()
generator.impactOccurred()
What's wrong?
Copyright © 2021 Jogjafile Inc.