Skip to content

Commit 85e101a

Browse files
committed
use new macro for SDK check
1 parent b43898f commit 85e101a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ios/RNSSearchBar.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ - (UINavigationItemSearchBarPlacement)placementAsUINavigationItemSearchBarPlacem
233233
return UINavigationItemSearchBarPlacementAutomatic;
234234
case RNSSearchBarPlacementInline:
235235
return UINavigationItemSearchBarPlacementInline;
236-
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_26_0) && \
237-
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_26_0
236+
#if RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
238237
case RNSSearchBarPlacementIntegrated:
239238
if (@available(iOS 26, *)) {
240239
return UINavigationItemSearchBarPlacementIntegrated;

0 commit comments

Comments
 (0)