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

Prevent crash on default color #3

Conversation

IgorChernyshov
Copy link
Contributor

This PR fixes this issue: #1

KRTabBarItem:

  • Made color property non-optional, because the app always crashes if the color is missing.
  • Added a default system color by default.
    KRTabBarController:
  • Reworked conditional in createButtonsStack: second if didn't throw an error, only the first one did + fatalError crashes all builds (including production). Should be better now.

- Made color property non-optional, because the app always crashes if the color is missing.
- Added a default system color by default.
KRTabBarController:
- Reworked conditional in createButtonsStack: second if didn't throw an error, only the first one did + fatalError crashes all builds (including production). Should be better now.
@kerollesroshdi
Copy link
Owner

That's awesome,
Thanks, @IgorChernyshov for your contribution

@kerollesroshdi kerollesroshdi merged commit 5b262ef into kerollesroshdi:master Oct 6, 2020
@IgorChernyshov
Copy link
Contributor Author

IgorChernyshov commented Oct 6, 2020 via email

@kerollesroshdi kerollesroshdi added the hacktoberfest-accepted Accept for Hacktoberfest label Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accept for Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants