This seems like a really basic question, but I cannot find the answer to it.
When I add elements to the scene in my storyboard or drag and drop them or resize them, Xcode automatically adds and removes constraints to describe their size and positioning.
Now that Xcode has created a constraint of a certain type β say, a height constraint β I know that I can change its attributes β Relation , Constant and Priority in case of height constraint β through the attribute inspector. I can't figure out how to manually add or remove restrictions of a certain type, and not rely on Xcode magic to do this for me.

For example, in my current scenario, I have a ViewController that contains a toolbar and a table view. Now I know for sure what restrictions I want to use to describe the vertical positioning and size of these two views:
- The top of the toolbar has a vertical space of 0 at the top of the screen.
- The toolbar has a fixed height
- The bottom of the table has a vertical space of 0 at the bottom of the screen.
- The top of the top of the table has a vertical space of 0 from the bottom of the toolbar
Thus, the height of the table will be adjusted accordingly to the screen size.
However, Xcode in its wisdom decided that this was not what I wanted, and instead imposed the following restrictions on me (which, it seems, do not want to change no matter how randomly I drag things and pray):
- The top of the toolbar has a vertical space of 0 at the top of the screen.
- The bottom of the toolbar has a vertical space 526 at the bottom of the screen.
- The table view has a vertical space of 0 at the bottom of the screen.
- The table view has a fixed height of 526
As a result, everything goes wrong when I try to view my ViewController on a smaller screen or in a container:

Itβs not possible to just manually set your own limits, when I know exactly what I need, it is frustrating. How can I explicitly remove the flash limits that Xcode automatically created and manually add my own instead?
source share