IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
950 stars 40 forks source link

Add UseTraitCollections rule #164

Closed Adobels closed 3 years ago

Adobels commented 3 years ago

UseTraitCollections rule is useful when developing a 100% iPhone or iPad app and working with Interface Builder to check scenes under different devices.

UseTaitCollections property of a storyboard enable / disable iPhone or iPad devices from Interface Builder device selector and makes the list of available devices shorter and easier to navigate.

List of devices for a default Xcode iOS project (UseTraitCollection is enabled):

Capture d’écran 2020-09-21 à 09 11 19

Disable Trait Variations and keep size class for iPhone only

Capture d’écran 2020-09-21 à 09 11 26

List of devices for a default Xcode iOS project (UseTraitCollection is disabled): Capture d’écran 2020-09-21 à 09 11 32

r-plus commented 3 years ago

sounds good!

Please update Rules.md file by compile iblinter-tools target and execute it.

kateinoigakukun commented 3 years ago

Sorry for my late response 🙇 I left just a comment about naming.