BarcodeScanner.Mobile icon indicating copy to clipboard operation
BarcodeScanner.Mobile copied to clipboard

Full Zoom functionality (Xamarin/MAUI) (Android/iOS)

Open unrateddi opened this issue 2 years ago • 0 comments

Added zoom functionality for Xamarin.iOS and .NET MAUI Android & iOS.

In Xamarin.Android was used the SetLinearZoom() which accepts values from 0.0 - 1.0 and the CameraView control implementation for zoom was made with a default value 0 to support that value range. I did not want to make breaking changes, since users' apps that have already used the zoom feature for Android would crash when running on iOS cause iOS native zoom setter accepts minimum value 1.0, so I implemented a translator in iOS to support those values, but we should consider to change to SetZoomRatio() in Android which accepts values and behaves same as iOS.

unrateddi avatar Feb 08 '24 08:02 unrateddi