Open PhilipDukhov opened 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
previewLayer.videoPreviewLayer.connection == nil
viewDidAppear
viewDidLayoutSubviews
connection == nil
I want my camera to take part of the screen. In current code
previewLayer.videoPreviewLayer.connection == nil
untilviewDidAppear
, so the last timeviewDidLayoutSubviews
is calledconnection == nil
, and the layer frame is not updated