-
Notifications
You must be signed in to change notification settings - Fork 42
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 a new rule: HidesBottomBar #176
Add a new rule: HidesBottomBar #176
Conversation
OK, I've just released IBDecodable 0.5.0 including your change. |
@kateinoigakukun thanks again! |
} | ||
|
||
private func validate<T: InterfaceBuilderFile>(for viewController: ViewControllerProtocol, file: T) -> Violation? { | ||
guard let customClass = viewController.customClass, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this rule is only applied for view controllers with custom classes, is this intentional? Should we warn a VC, which doesn't specify hidesBottomBarWhenPushed and doesn't have a custom class?
@kateinoigakukun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 😎
About
Add a new rule to check if HidesBottomBarWhenPushed is enabled
HidesBottomBar rule is especially useful when the most of ViewControllers in your app need to be pushed with their bottom bar hidden.
false
by default, I assume this rule can help prevent possible human errors.In order to implement the rule, I had to make change to IBDecodable, too.
Packages.swift
and open this PR, once the one for IBDecodable's approvedP.S.
Thanks for this wonderful tool!