Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UseTraitCollections rule #164

Merged
merged 4 commits into from
Sep 26, 2020
Merged

Add UseTraitCollections rule #164

merged 4 commits into from
Sep 26, 2020

Conversation

Adobels
Copy link
Contributor

@Adobels Adobels commented Sep 21, 2020

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

@Adobels Adobels changed the title Add rule UseTraitCollections Add UseTraitCollections rule Sep 21, 2020
@r-plus
Copy link
Contributor

r-plus commented Sep 21, 2020

sounds good!

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

Copy link
Collaborator

@kateinoigakukun kateinoigakukun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for PR. Please add a test case to check parsing config file, and add usage description on README 🙏

@kateinoigakukun
Copy link
Collaborator

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

@kateinoigakukun kateinoigakukun merged commit fad133c into IBDecodable:master Sep 26, 2020
@Adobels Adobels deleted the add_rule_use_trait_collections branch September 26, 2020 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants