r/iOSProgramming • • 14m ago

Discussion Something I never bothered to ask when learning Swift... Why is the standard for Attributes to be inline rather than on a preceding line?

I visually prefer newlines, but code search works marginally better on inlined attributes.

3 Upvotes

2 comments sorted by

•

u/trouthat 7m ago

It’s mostly personal preference. For me if it fits within the maximum number of characters on a line it stays inline otherwise it goes to the next line

•

u/KukrCZ 6m ago

Strictural visibility is a king/queen. Having var/let starting on the same char is just more structurally dound.