Skip to content

Commit

Permalink
fix Xcode warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Dec 7, 2023
1 parent 2767745 commit cda60aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ - (BOOL)fb_setAppearance:(FBUIInterfaceAppearance)appearance error:(NSError **)e
return YES;
}

#if __clang_major__ >= 14 && __clang_minor__ >= 0 && __clang_patchlevel__ >= 3
#if __clang_major__ >= 15 || (__clang_major__ >= 14 && __clang_minor__ >= 0 && __clang_patchlevel__ >= 3)
// Xcode 14.3.1 can build these values.
// For iOS 17+
if ([self respondsToSelector:NSSelectorFromString(@"appearance")]) {
self.appearance = appearance;
self.appearance = (XCUIDeviceAppearance) appearance;
return YES;
}
#endif
Expand Down

0 comments on commit cda60aa

Please sign in to comment.