IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
948 stars 42 forks source link

Add has initial view controller and has single view controller rules #181

Closed Adobels closed 2 years ago

Adobels commented 2 years ago

This PR adds two rules.

Rule "has_initial_view_controller":

Checks if "initial view controller" has been selected in the storyboard file. This rule applies to storyboards only.

Rule "has_single_view_controller":

Checks if there is only one "view controller" in the "storyboard" files. View controller references don't count as a view controller. This rule applies to storyboards only.