-
Notifications
You must be signed in to change notification settings - Fork 252
Snapshot doesn't render UIApperances setups #91
Comments
Thank you @loadex for opening this. The I will need to spend some time to figure out a good solution but for now something like this will work:
|
@nscoding Thanks for this solution ! I will use it while waiting for your update. Your solution doesn't seem to work when appearances are used with |
@loadex I will check it and get back to you. |
@loadex can you give me an example how you use |
Thanks for your reply @nscoding My view hierarchy look like : My apperances setups are :
My test file :
As you can see, the UIImageView adopt the pink color instead of the blueblack and the label is not blueblack either. Are my tests correct ? |
Thank for your detailed message.
|
@nscoding Thanks for you answer :
The tintColor property works fine for the textcolor when i'm using the app. This change well the textColor. The TextColor property is not referenced to be compatible with the uiappearance proxy. I used this link to check the headers, and learn more about this. That's why I tried the tint color and it work fine this way.
Same here, the tintColor allow me to change so textColor on controls, I've set it as my default value everywhere else, what's weird is that it is not working on my labels here.
Can't explain the new results here : I hope this help ! Edit : I've just checked again my labels, turn out you can't set the textcolor using uiapperances, so your temporary fix is now working correctly ! Sorry for misleading you ! 😉 |
@loadex thanks for the update, I don't have a better solution for now other than the on above. I'll keep the issue open. |
#100 is addressing this issue, I will now close the issue but please reopen if you think otherwise. |
The snapshot render the UI without rendering view with the setup of their UIApperances selector.
This may help
The text was updated successfully, but these errors were encountered: