From c904aa46ef84904c5bb3249d203d2e9a662d3625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nishan=20=28o=5E=E2=96=BD=5Eo=29?= Date: Wed, 9 Sep 2026 07:45:52 -0700 Subject: [PATCH] fix(iOS) - Prevent SwiftUI based `filter` from insetting content by the safe area (#58349) Summary: When a `filter` style is passed to a `View`, it can shift the `View` by safe area insets if it overlaps a safe area edge. Filter style should not affect layout. Also fixes - https://github.com/react/react-native/issues/57642 Unset [safeAreaRegions](https://developer.apple.com/documentation/swiftui/uihostingcontroller/safearearegions) on the hosting controller to opt out of implicit safe area insets. Below iOS 16.4 `safeAreaRegions` does not exist so it requires Obj-C swizzling hack as noted here - https://github.com/react/react-native/pull/57643. Hence, proper fix requires gating the filter feature to iOS 16.4. We can mention it in the documentation on release. ## Changelog: [IOS] [FIXED] - Fix views with a filter having their content offset by the safe area insets