Show HN: Click counter using iPhone volume buttons
testflight.apple.com
testflight.apple.com
> 2.5.9 Apps that alter or disable the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, or other native user interface elements or behaviors will be rejected.
Infamously, there was a third party camera app, Camera+, that turned the Volume Up button into a shutter release. Apple pulled it from the store—and then released the same feature for the built in Camera app.
https://forums.appleinsider.com/discussion/112111/popular-ip...
https://developer.apple.com/documentation/avkit/avcaptureeve...
- crashes if you hold one of the volume buttons for long
JUST LEARNED THIS... Apparently, Apple prohibits apps from altering hardware functions like volume buttons. So, that likely means this app won't get published on App Store.
But it's been fun to learn Swift and Objective-C from building this simple app.
If I want this to be released, I would need to remove the volume button control and only support swipe gestures.
I can also make this open-source if you are interested in learning how it works.
Lemme know what you think.
Really nifty idea to use the volume buttons instead of the touchscreen.
this is a commonly reported bug that wasn't able to spot when in development mode.
i think the issue is that i might have attached the volume-button handler multiple times, so that each time you click on the volume button, those duplicated handlers all emit events.
pushed out a small fix currently under apple's review