From b352a5b47ffdb0b74637f5613dc82064d9998513 Mon Sep 17 00:00:00 2001
From: Mark Johnson <markj@squareup.com>
Date: Fri, 18 Oct 2024 13:01:08 -0400
Subject: [PATCH] Fixed device orientation to interface orientation

See notes on https://developer.apple.com/documentation/uikit/uiinterfaceorientation
---
 Sources/KIF/Classes/KIFSystemTestActor.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Sources/KIF/Classes/KIFSystemTestActor.m b/Sources/KIF/Classes/KIFSystemTestActor.m
index aadb9106..b6baa80d 100644
--- a/Sources/KIF/Classes/KIFSystemTestActor.m
+++ b/Sources/KIF/Classes/KIFSystemTestActor.m
@@ -82,10 +82,10 @@ - (void)simulateDeviceRotationToOrientation:(UIDeviceOrientation)orientation
                     orientationMask = UIInterfaceOrientationMaskPortraitUpsideDown;
                     break;
                 case UIDeviceOrientationLandscapeLeft:
-                    orientationMask = UIInterfaceOrientationMaskLandscapeLeft;
+                    orientationMask = UIInterfaceOrientationMaskLandscapeRight;
                     break;
                 case UIDeviceOrientationLandscapeRight:
-                    orientationMask = UIInterfaceOrientationMaskLandscapeRight;
+                    orientationMask = UIInterfaceOrientationMaskLandscapeLeft;
                     break;
                 case UIDeviceOrientationFaceUp:
                     orientationMask = UIInterfaceOrientationMaskAll;