pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/NativeScript/NativeScript/commit/aea175f625edadca23a5e81da4cd833e426038d3

ink crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-12d60eb17c94521c.css" /> fix(ios): guard interactiveContentPopGestureRecognizer for apps built… · NativeScript/NativeScript@aea175f · GitHub
Skip to content

Commit aea175f

Browse files
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

File tree

packages/core/ui/page/index.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ class UIViewControllerImpl extends UIViewController {
189189
// only consider when interactive transitions are not enabled
190190
navigationController.interactivePopGestureRecognizer.delegate = navigationController;
191191
navigationController.interactivePopGestureRecognizer.enabled = owner.enableSwipeBackNavigation;
192-
if (SDK_VERSION >= 26) {
192+
if (SDK_VERSION >= 26 && navigationController.interactiveContentPopGestureRecognizer) {
193193
navigationController.interactiveContentPopGestureRecognizer.enabled = owner.enableSwipeBackNavigation;
194194
}
195195
}
196196
} else {
197197
navigationController.interactivePopGestureRecognizer.enabled = false;
198-
if (SDK_VERSION >= 26) {
198+
if (SDK_VERSION >= 26 && navigationController.interactiveContentPopGestureRecognizer) {
199199
navigationController.interactiveContentPopGestureRecognizer.enabled = false;
200200
}
201201
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy