In the current implementation, we assumed that the Image Capture Session has the same aspect ratio as the containing UIView, or would be scaled to make it so.
This is not the case. Instead, the preview behaves like UIView.ContentMode.AspectFill, truncating portions that do not fit.
The result looks like this:
This Pull Request accounts for the mismatch in aspect ratios, fixing the problem:
In the current implementation, we assumed that the Image Capture Session has the same aspect ratio as the containing
UIView
, or would be scaled to make it so.This is not the case. Instead, the preview behaves like
UIView.ContentMode.AspectFill
, truncating portions that do not fit.The result looks like this:
This Pull Request accounts for the mismatch in aspect ratios, fixing the problem: