[iOS 26] Fix blocked product fields editing in iOS 26 #16133
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

WOOMOB-1259
Description
This pull request addresses a change in gesture recognizer behavior observed on newer iOS SDKs. The
gestureRecognizer(_:shouldBeRequiredToFailBy:)delegate method was being unexpectedly triggered by simple taps on UI elements like text fields, even when no swipe gesture was performed. This is likely due to internal refinements in how UIKit handles gesture recognition. To make our conditional swipe-back logic more robust and explicit, this change replaces the previous implementation withgestureRecognizerShouldBegin(_:). This is the standard and more direct method for conditionally enabling or disabling a gesture, ensuring our code is more resilient to future iOS updates.Consider checking out the video attached to the task for clarity.
Testing steps
In manual testing our objective is to make sure that the "swipe back" gesture is properly detected and "Discard changes" wall is presented where needed - both on iOS 18 and iOS 26. The device testing is preferred to have proper swipe back gesture.
Testing steps Xcode 16.x + iOS 16.x
Testing steps Xcode 26 + iOS 26
Testing information
Tested on iOS 18.4 device iOS 26 simulator. Confirmed the back swipe works on both OS versions detecting unsaved changes.
RELEASE-NOTES.txtif necessary.