Commit aea175f
authored
fix(ios): guard interactiveContentPopGestureRecognizer for apps built with pre-26 SDKs (#11313)
interactiveContentPopGestureRecognizer only exists in the iOS 26 SDK. When
an app is built with an older Xcode/SDK (e.g. Xcode 16 / iOS 18 SDK) but run
on iOS 26+, the property is absent from the generated ObjC metadata (metadata
comes from the build SDK headers), so accessing it returns undefined and the
runtime SDK_VERSION >= 26 check throws:
TypeError: Cannot set properties of undefined (setting 'enabled')
crashing the app on first page navigation. Guard the property access with an
existence check, matching the pattern already used in
_updateEnableSwipeBackNavigation.1 parent dd32f22 commit aea175f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments