Skip to content

Commit bf49869

Browse files
StuSharpeStu Sharpestephencelis
authored
Re-introduce original thread-hop for deallocating onDismiss() for non-UIAlertController cases that was present in 2.5.0, fixes crash when building with XCode 26 (#314)
Co-authored-by: Stu Sharpe <[email protected]> Co-authored-by: Stephen Celis <[email protected]>
1 parent 97a5f06 commit bf49869

File tree

1 file changed

+3
-1
lines changed
  • Sources/UIKitNavigationShim

1 file changed

+3
-1
lines changed

Sources/UIKitNavigationShim/shim.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ - (void)UIKitNavigation_viewDidDisappear:(BOOL)animated {
6969
});
7070
} else {
7171
self._UIKitNavigation_onDismiss();
72-
self._UIKitNavigation_onDismiss = nil;
72+
dispatch_async(dispatch_get_main_queue(), ^{
73+
self._UIKitNavigation_onDismiss = nil;
74+
});
7375
}
7476
}
7577
}

0 commit comments

Comments
 (0)