After update iOS 11 with Swift 4, photo capture couldn’t. Here is one of the sample source code of using Swift 4 + iOS 11. Check it out.

Sample Code is Here.