forked from kodecocodes/swift-style-guide
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Do you imply that private subviews list should be placed above public properties?
There are some developers building subviews in code rather than using interface builder.
I assume that IBOutlets are more or less public, being linked to Storyboard or Xib, and in their case it is right to place them at the first place. But private subviews do not stick up out of class and it is more correct to place public interface first. And then if person reading this code needs to find out implementation of the view, one can scroll down to subviews and layout.
Metadata
Metadata
Assignees
Labels
No labels