I am trying to apply the Haptic vibration effect. But it looks like that only iPhone 7 or later support this cool feature. I have already read this thread.
How to determine the current iPhone/device model?
Is there a function I can use to just determine if the device is iPhone 7 or a newer device? If I use the SWITCH statement, I will have to submit an update to App Store each time Apple releases new devices. So there will be a couple of days the App doesn't work on the new released devices.
EDIT: On iPhone 6 or lower, I would use the normal Vibration so that I need to know if the the device is newer than iPhone 7. Or it will just do nothing on iPhone 6 or older devices. AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))