Replicating Beme's Proximity-Record in Swift

Replicating Beme's Proximity-Record in Swift

If you haven't seen Beme yet, you've probably been living under a rock. It's Casey Neistat's new video creation application that uses doesn't show you what you're recording. I've loved the concept from day one. You cover the proximity sensor on the iPhone and it'll start recording 4 seconds of video and then auto-upload it to their servers. I wondered how difficult it would be to replicate it and it turns out is actually pretty simple. Essentially it comes down to these steps: Enable the device's proximity sensor in your app Create an observer for the proximity sensor state Use…