You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ios): fix shake detection crash and swizzle safety
UIWindow inherits motionEnded:withEvent: from UIResponder and may not
have its own implementation. Using method_setImplementation directly on
the inherited Method would modify UIResponder, affecting all subclasses
and causing a doesNotRecognizeSelector crash.
Fix by calling class_addMethod first to ensure UIWindow has its own
method before replacing the IMP. Also prevent duplicate NSNotification
observers on component remount, and clean up debug logging.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments