Skip to content

Commit 5f643d6

Browse files
committed
Change iOS check to use __IPHONE_16_0 for better readbility
1 parent 708ab87 commit 5f643d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/KIF/Classes/KIFSystemTestActor.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ - (void)simulateMemoryWarning
5858

5959
- (void)simulateDeviceRotationToOrientation:(UIDeviceOrientation)orientation
6060
{
61-
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 16000
61+
#ifdef __IPHONE_16_0
6262
if (@available(iOS 16.0, *)) {
6363
NSSet<UIScene *> *scenes = [[UIApplication sharedApplication] connectedScenes];
6464
UIWindowScene* windowScene;
@@ -103,7 +103,7 @@ - (void)simulateDeviceRotationToOrientation:(UIDeviceOrientation)orientation
103103
} else {
104104
#endif
105105
[[UIDevice currentDevice] setValue:@(orientation) forKey:@"orientation"];
106-
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 16000
106+
#ifdef __IPHONE_16_0
107107
}
108108
#endif
109109
}

0 commit comments

Comments
 (0)