Search code examples
xcodestoryboardalignmentconstraintsshortcut

How to quickly snap a view in storyboard back into its constraints after accidentally moving it


Everything I have found, every one says this cant be done.

I studied in fullsail university and they taught me how to do this so I know without a doubt it can be done. No one just knows how and assumes it can't.

Basically, when in XCode-story board, I would add constraints to a view and everything is all blue and perfect. From there, if you click, hold a drag, the view to another position then all of the constraints will turn orange. (Not RED because the constraints are still good it just simply needs to snap back into place..)

When in school my teacher taught me a quick key short cut that you press and everything snaps back into place and its all blue again. It has been a while since I have coded and i am just now getting back into it again and i just cant remember what that shortcut was.

I hope someone out there knows how to do this. Maybe any fullsail graduates?

Your responses are greatly appreciated.


Solution

  • I figured it out.

    option + CMND + '='