07-19-2023, 01:25 AM
I am wondering how we could check if the new iOS 10 API `UIFeebackGenerator` is available on the current device. There are some more things we would need to check:
1. The device needs to run iOS 10.0 or later
2. The device needs to be an iPhone 7 or later
3. The Haptic Engine needs to be turned on in the Settings
The first two checks can be achieved using `#available(iOS 10, *)` statement and a (hacky) device-detection, but the latter one doesn't seem to be checkable.
Does someone know a solution for this? Or maybe we need to file an Apple Radar for this one. Thanks!
1. The device needs to run iOS 10.0 or later
2. The device needs to be an iPhone 7 or later
3. The Haptic Engine needs to be turned on in the Settings
The first two checks can be achieved using `#available(iOS 10, *)` statement and a (hacky) device-detection, but the latter one doesn't seem to be checkable.
Does someone know a solution for this? Or maybe we need to file an Apple Radar for this one. Thanks!