Skip to content

Code organization: private subviews #25

@ssayfulin69

Description

@ssayfulin69

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions