diff --git a/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.h b/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.h
index 865eaaef2..8e52106cf 100644
--- a/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.h
+++ b/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.h
@@ -34,8 +34,6 @@ NS_ASSUME_NONNULL_BEGIN
- (void)updateScanWarnings:(ALWarningState)warningState;
-- (void)updateWarningPosition:(CGFloat)newPosition;
-
- (void)updateBrightness:(CGFloat)brightness forModule:(id)anylineModule ignoreTooDark:(BOOL)ignoreTooDark;
- (void)updateBrightness:(CGFloat)brightness forModule:(id)anylineModule;
diff --git a/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.m b/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.m
index 7071c13ef..ef255df09 100644
--- a/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.m
+++ b/AnylineExamples/Anyline Demo App/DemoApp Source/ALBaseScanViewController.m
@@ -106,6 +106,7 @@ - (void)installScanView:(ALScanView *)scanView {
- (void)addWarningSubview {
ALWarningView *warningView = [[ALWarningView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 70)];
warningView.center = CGPointMake(self.view.center.x, 0);
+
self.warningView = warningView;
[self.view addSubview:warningView];
self.warningView.alpha = 0;
@@ -146,10 +147,6 @@ - (void)updateScanWarnings:(ALWarningState)warningState {
[self.warningView showWarning:warningState];
}
-- (void)updateWarningPosition:(CGFloat)newPosition {
- self.warningView.center = CGPointMake(self.warningView.center.x, newPosition);
-}
-
// MARK: - anylineDidFindResult
- (void)anylineDidFindResult:(NSString *)result
@@ -487,7 +484,12 @@ - (void)scanViewMotionExceededThreshold:(ALScanView *)scanView {
}
- (void)scanView:(ALScanView *)scanView updatedCutoutWithPluginID:(NSString *)pluginID frame:(CGRect)frame {
- [self updateWarningPosition:frame.origin.y + frame.size.height + scanView.frame.origin.y + 80];
+ CGFloat xPos = (frame.origin.x + (frame.size.width/2));
+ CGFloat yPos = frame.origin.y + frame.size.height + scanView.frame.origin.y + 80;
+ if (_isOrientationFlipped) {
+ yPos = frame.origin.y;
+ }
+ self.warningView.center = CGPointMake(xPos, yPos);
}
- (void)scanView:(ALScanView *)scanView encounteredError:(NSError *)error {
diff --git a/AnylineExamples/Anyline Demo App/Info.plist b/AnylineExamples/Anyline Demo App/Info.plist
index ed07606d1..5fc29a306 100755
--- a/AnylineExamples/Anyline Demo App/Info.plist
+++ b/AnylineExamples/Anyline Demo App/Info.plist
@@ -17,7 +17,7 @@