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

Added Dark Mode colors for default values #473

Closed
wants to merge 2 commits into from

Conversation

ezathashim
Copy link

  • added code that checks for OS Version and adjusts default color to use System Colors for Dark Mode compatibility

@skywinder
Copy link
Owner

👍 Thank for this improvements, did you test it already? could you please provide screenshots of your version?

…use 'collectionView registerNib...' instead of 'registerClass' since my supplementary views are xib based.
Copy link
Owner

@skywinder skywinder left a comment

Choose a reason for hiding this comment

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

hello. please fix these 3 things and I would be happy to merge! 🙌

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Owner

Choose a reason for hiding this comment

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

Please, remove changes in this file, since it's not related to this feature.


if (@available(iOS 13.0, *)) {
self.titleTextAttributes = @{ NSForegroundColorAttributeName : UIColor.labelColor };
} else {
Copy link
Owner

Choose a reason for hiding this comment

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

why do you need empty else statement? I think we can easily delete them

// Fallback on earlier versions
}
if (@available(iOS 13.0, *)) {
[self setTextColor: [UIColor labelColor]];
Copy link
Owner

Choose a reason for hiding this comment

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

you can make all this 3 set's in one

       if (@available(iOS 13.0, *)) { 
}

block. it would be easier to read.

@skywinder
Copy link
Owner

Dear @ezathashim. I really appreciate your help. and thanks for support. But I would merge #479 since it already fixes all the issues that i mentioned above. Cheers.

@skywinder skywinder closed this Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants