Defer browser view hierarchy mutations to prevent Auto Layout recursion - #662
lawrencecchen wants to merge 1 commit into
Conversation
macOS 26 enforces stricter Auto Layout validation and crashes with EXC_BREAKPOINT when addSubview/removeFromSuperview is called during a layout pass. Wraps attach/detach/dismantle mutations in scheduleDeferredHierarchyMutation (DispatchQueue.main.async) with generation guards to prevent stale mutations. Closes #653
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR successfully addresses macOS 26 Tahoe's stricter Auto Layout validation by deferring view hierarchy mutations ( Key changes:
Implementation quality:
Confidence Score: 4/5
Important Files Changed
Last reviewed commit: 14ad5a1 |
Additional Comments (1)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
Summary
scheduleDeferredHierarchyMutation(DispatchQueue.main.async) with generation guards to prevent stale mutationsCloses #653
Test plan