Photo and Video capture and display using Swift 2.0 (for iOS)
This is the Swift version of code that I have used in multiple projects, for camera or video recording and playback
The main screen has a collectionView which shows all images or video thumbnails that have been recorded. They are saved locally to the Documents folder.
When taking a photo, the flash can be toggled on/off (the button is not displayed on the iPad).
Pinching will zoom the image to 2x.
When recording video, there is a 15 second (configurable in code) limit.