Skip to content

Instantly share code, notes, and snippets.

@nedimf
Created October 25, 2020 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nedimf/f2aba403af2f62928a0ca23393a48bd8 to your computer and use it in GitHub Desktop.
Save nedimf/f2aba403af2f62928a0ca23393a48bd8 to your computer and use it in GitHub Desktop.
Haptic Feedback
func hapticFeedback(for haptic: UINotificationFeedbackGenerator.FeedbackType){
let generator = UINotificationFeedbackGenerator()
generator.notificationOccurred(haptic)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment