We are getting a black strip in iphone camera . We tried zooming preview overlay of camera by using previewTransform and works in iPhone 7 but not in iPhoneX . Please let us know if any one does have a solution?

Hello @Emewson Pvwkew​

Yes, the above mentioned code will applicable for the new models. We have to identify the device model and set the code. OR you can use the below code to to fix for all the iPhone devices.

var deviceInfo=kony.os.deviceInfo();

var deviceWidth=deviceInfo.screenWidth;

var deviceHeight=deviceInfo.screenHeight;

var cameraAspectRatio=4.0/3.0;

var cameraHeight=deviceWidth*cameraAspectRatio;

var transform = kony.ui.makeAffineTransform();

transform.translate(0, (deviceHeight-cameraHeight)/2);

form.camOverlay.previewTransform = transform;