recommendedFraming
The latest recommended framing from the monitor.
Declaration
var recommendedFraming: AVCaptureFraming? { get }Mentioned in
Discussion
While your AVCaptureSession is running, the monitor continuously observes its device’s scene to recommend the best framing. This recommended framing is always one of the values in enabledFramings. This property may return nil if smart framing isn’t supported for the device in its current configuration. Its default value is nil. This property is key-value observable, and when you observe a change, you may respond to the new recommendation by calling setDynamicAspectRatio(_:completionHandler:) and setting videoZoomFactor on the associated device in whatever order best matches your animation between old and new framings.