I have been working on using a custom camera, and I recently upgraded to Xcode 8 beta along with Swift 3. I originally had this:
var stillImageOutput: AVCapt
I found this project in GitHub that helped me understand the initialization of the device and capture-session.
AVCapturePhotoOutput_test by inoue0426