Alex Bollbach
Alex Bollbach

Reputation: 4590

Change order of constraint listings in Interface Builder's document outline

Is it possible to change the order of the various top level constraints that show up in the document outline? The top level constraints are where all the various constraints between my many label elements are and I'd like to organize them into logical groupings to streamline my work flow. Currently, they are listed in the same order that I added them, however this is not ideal. While you can drag and reorder individual elements around in the document outline it does not appear that you can reorder constraints. Is there a work around or simply something I am missing?

Upvotes: 7

Views: 1633

Answers (3)

mikep
mikep

Reputation: 7457

The order should be drag&drop replaceable, perhaps in future versions of Xcode. I still do not see it implemented on Xcode 12.4. Shame on Apple.

Upvotes: 0

TamerK
TamerK

Reputation: 43

The order should be drag&drop replaceable, perhaps in future versions of Xcode. I still do not see it implemented on Xcode 9.

Upvotes: 1

stakri
stakri

Reputation: 1397

This cannot be done graphically in Interface Builder (tested in XCode 7.3). Also, if you right-click the .storyboard/.xib file and select "Open As -> Source Code", the constraints for your view can be reordered by changing the order of the respective XML elements, but once you switch back to Interface Builder, their order will be reverted.

Upvotes: 8

Related Questions