How to more easily "update all frames" in autolayout in Xcode7?

AFAIK, there is no keystroke for update all frames, but here's a key tip:

  • If you have a misplaced views, press the yellow arrow in the document outline (the views tree to the left of canvas), press yellow triangle on any view in the list, then select update frames and check Apply to all views in container - this will update all misplaced views in the selected view controller

enter image description here

Additionally, you probably already know:

  • You can add a new constraint with Add New Constraints button in canvas bottom right and select "Update frames" option.

  • You can select any view by mouse-click and holding Option+Shift keys - this will show you the list of all the views, that intersects with mouse pointer. After that you can select update frames menu item on a selected misplaced view.


It's easy. Go to Preferences -> Key Bindings. Type "Update Frames" on the top. You'll see two appear. You'll want the bottom one (it will be the one without a keyboard shortcut assigned.)

Assign it to ⌘= or anything else you like.

Life changed.

enter image description here enter image description here

  • Just for anyone reading, with Xcode 8.3. The popup menu command no longer exists. The menu bar command Editor -> Update Frames does work. However there's a bug, the default key binding on that does not work. If you add a custom key combo, that custom key combo does work.