iosxcodeinterface-builderxib

Can't add constraints in xib


I have a xib but I can't add constraints. When I control click and drag I can't do anything also the buttons at the bottom I can't do anything with it.

I'm using xCode 11.

enter image description here


Solution

  • Check if the layout option is set to automatic or not for the views/buttons etc for which you trying to add constraints. Attaching a screenshot for reference, hope this helps. enter image description here