r/iOSProgramming • • Jan 13 '21

Article Did you know? When a view is selected in Interface Builder, you can press Option ⌥ to find out the distance to its neighbors 👌

176 Upvotes

13 comments sorted by

36

u/[deleted] Jan 13 '21

I did indeed know this, unfortunately it’s no use when doing everything programmatically now

16

u/[deleted] Jan 13 '21

And that is good

2

u/iTolIMouS Jan 14 '21

I do UIs programmatically and I can confirm that

4

u/nibord Swift Jan 13 '21

It might be helpful to know that you can also do this in Figma. Possibly other prototyping tools. It comes in handy for me while writing programmatic views.

9

u/electron_wrangler Jan 13 '21

agreed... interface builder is worse than useless at this point.

1

u/green_meditation Jan 14 '21

Can you briefly explain why? I’m new to learning Swift & Xcode. I’ve been following one of apples book and also doing practice projects on Hacking with Swift. A lot of what I have done so far has dealt with interface builder. Granted I am learning UIKit and not SwiftUI (yet. I’m currently focused on becoming employable).

2

u/Spaceshipable Jan 14 '21

This post was made by UIKit in code gang

2

u/SuperDuperTango Jan 13 '21

Nice. Thanks!

2

u/BilllisCool Jan 13 '21

No.

But now I do and my life is better because of it.

1

u/-darkabyss- Objective-C / Swift Jan 13 '21 edited Jun 26 '25

alive detail bedroom reply lavish rustic cough touch offer hard-to-find

This post was mass deleted and anonymized with Redact

1

u/pulgalipe Jan 14 '21

I use it every single time when doing SB’s. When doing UI’s programmatically it’s kinda unusable but it’s good to have it as an assistance tool.