This function call vibration_generator.notificationOccurred(.success) does the vibration. The vibration_generator is an instance of UINotificationFeedbackGenerator
This function call vibration_generator.notificationOccurred(.success) does the vibration. The vibration_generator is an instance of UINotificationFeedbackGenerator