Awalz / SwiftyCam

A Snapchat Inspired iOS Camera Framework written in Swift
BSD 2-Clause "Simplified" License
2.08k stars 327 forks source link

preview frame fix in case of using SwiftyCamViewController as a child vc #220

Open PhilipDukhov opened 4 years ago

PhilipDukhov commented 4 years ago

I want my camera to take part of the screen. In current code previewLayer.videoPreviewLayer.connection == nil until viewDidAppear, so the last time viewDidLayoutSubviews is called connection == nil, and the layer frame is not updated