File tree Expand file tree Collapse file tree
compose/ui/ui-uikit/src/iosMain/objc/CMPUIKitUtils/CMPUIKitUtils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,11 +150,7 @@ - (void)didMoveToWindow {
150150 if (self.window != nil ) {
151151 [[CMPEditMenuViewRegister shared ] addEditMenu: self ];
152152 } else {
153- if (@available (iOS 16.0 , *)) {
154- [self cancelPresentEditMenuInteraction ];
155- } else {
156- [self cancelShowMenuController ];
157- }
153+ [self hideEditMenu ];
158154 [[CMPEditMenuViewRegister shared ] removeEditMenu: self ];
159155 }
160156}
@@ -255,8 +251,8 @@ - (void)presentEditMenuInteraction API_AVAILABLE(ios(16.0)) {
255251
256252 UIEditMenuConfiguration *config = [UIEditMenuConfiguration configurationWithIdentifier: nil
257253 sourcePoint: self .targetRect.origin];
258-
259- NSLog (@" [CMPEditMenuView] presentEditMenuInteraction called with config: %@ || window : %@ " , config, [ self .window description ] ?: @" <no window> " );
254+ // hideEditMenu
255+ NSLog (@" [CMPEditMenuView] presentEditMenuInteraction called with config: %@ || view : %@ " , config, self);
260256 [self .editInteraction presentEditMenuWithConfiguration: config];
261257}
262258
You can’t perform that action at this time.
0 commit comments