IlijaMihajlovic/Camera-App-With-UIImagePickerController-And-AVFoundation-Completely-Programmatically
Demonstrating how to use the front camera, toggle camera flash and use the back camera with the UIImagePickerController and AVFoundation completely programmatically. Also saving and loading the image from the Photo Library, perhaps if the camera is unavailable.
SwiftMIT