-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Conversation
ezathashim
commented
Feb 19, 2020
- added code that checks for OS Version and adjusts default color to use System Colors for Dark Mode compatibility
👍 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.
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.
hello. please fix these 3 things and I would be happy to merge! 🙌
@@ -0,0 +1,8 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
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.
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 { |
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.
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]]; |
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.
you can make all this 3 set's in one
if (@available(iOS 13.0, *)) {
}
block. it would be easier to read.
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. |