-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Custom skeleton color not persistently adaptive #197
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Works great. Thanks! |
I still have this issue (version 1.30.4). However it happens only if the user swapping between dark/light mode during the animation. |
I have the following code in my app delegate that customizes my skeleton color:
Here
Color.skeleton
is an adaptive color that has light/dark mode. And this works - if I open the app in dark mode, the skeletons show up in the dark color.However, when I background the app, toggle the system light/dark switch (or if it auto changes at sunrise/sunset), then come back to the app, the skeleton still keeps the original color and doesn't automatically switch to the color for the opposite appearance.
All other parts of the app can adjust without problem (and with a nice animation even). It looks SkeletonView somehow caches an absolute color instead of the adaptive parent color in this case.
The text was updated successfully, but these errors were encountered: