[fix/markup-pinch-acc-dismiss] Prevent accidental dismissal of markup UI via pinch gesture#1560
Conversation
…arkup UI through use of pinch gesture
d60e932 to
1e3f2bb
Compare
|
Problem is easily reproducible, some checks performed over iPhone and iPad, PDF and image files (markupable formats) to confirm that the pinch action does not close the mark-up mode accidentally. Approved on my side. |
dj4oC
left a comment
There was a problem hiding this comment.
This PR prevents accidental dismissal of the markup UI via a pinch gesture, by setting isModalInPresentation = true on the presented edit-document view controller.
Findings
Nothing blocking. Already reviewer-tested on-device (iPhone + iPad, PDF and image/markupable formats) and approved by three reviewers, including an explicit QA sign-off in the PR comments.
One informational (non-blocking) note: isModalInPresentation is set on editDocumentViewController — the navigation controller's root — rather than on the presented navigationController itself. iOS's interactive-dismissal check normally consults the presented view controller. Since on-device QA already confirms the pinch-to-dismiss gesture is blocked as intended, this is very likely fine in practice (the pinch handler probably checks the flag directly rather than relying on system sheet-dismissal semantics) — flagging only so a future reviewer double-checks which VC is authoritative here if this pattern is reused elsewhere.
Note
Build verification skipped (Xcode not available in cloud review environment). Code analysis only.
Verdict
Commenting — no blocking findings; already approved by 3 reviewers including QA.
🤖 Automated review by Claude Code (security · stability · performance · coverage)
Generated by Claude Code
🤖 Automated review by Claude Code (security · stability · performance · coverage) Generated by Claude Code |
1e3f2bb
6099c37 to
1e3f2bb
Compare
7b21933 to
192a870
Compare
Description
Prevents the accidental dismissal of markup UI via pinch gesture.
Related Issue
SE-1419
Types of changes