r/iOSProgramming • u/FullstackViking • 17m 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


•
u/trouthat 10m 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 8m ago
Strictural visibility is a king/queen. Having var/let starting on the same char is just more structurally dound.