Ctrl-Drag in Xcode

There are two places within Xcode (version 13.3) where I can't drag and drop anymore.

  1. Trying to move a file to a Group. I have tried just clicking and dragging, control-click, option-click, command-click, none work. Instead of dragging the file, the cursor just moves without the selected/highlighted file and highlights whatever file or group it is hovering over.

  2. Trying to drag a button to a View Controller to make a connection or to code to create an outlet. Instead, a popup window appears with three rows, each with corresponding icon, two lines each (title and object type): View Controller, View, Button. (I can't figure out how to capture that screen since I am already holding the control key and mouse button (track pad) but here is a photo.

This popup now appears (whether I am holding the control, option, or command key) rather than the blue line:

I tried to reproduce the problem, but I could not.

Could you describe in detail the second case shwon in picture?

  • Where exactly do you drag from ? Code ? If so, could you show the code ?
  • To where ? Storyboard ?
  • are you holding control key only ?

Probably the button is inside another view or may be a tableview cell ?

If the button could be in different superview, you have to select which one. That's the case for instance when you include a button in a cell prototype and you have several prototypes of the same class. Then when you connect, you get such a popup.

Ctrl-Drag in Xcode
 
 
Q