diff --git a/ios/Classes/TiBarcodeViewController.m b/ios/Classes/TiBarcodeViewController.m index bab51870..485e26ba 100644 --- a/ios/Classes/TiBarcodeViewController.m +++ b/ios/Classes/TiBarcodeViewController.m @@ -54,8 +54,12 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; + [_overlayView updateViewsWithFrame:[UIScreen mainScreen].bounds]; [[self view] addSubview:_overlayView]; [[self view] bringSubviewToFront:_overlayView]; +#if HAS_AVFF + _scanner.previewLayer.frame = _overlayView.frame; +#endif } - (void)viewWillDisappear:(BOOL)animated