Now with Dark Mode I have been creating color assets to manage dark mode colors, but sometimes I think of a more semantic name for a certain color after I have used it in multiple places and I was wondering if there is a way to find where a color has been used even if I have to go and manually changed them, I'm not really looking for an automatic solution.
Is there a way to rename or find all of the instances where a custom color asset has been used in Xcode?
Thanks!
Sorry, I mistook. It does cause any error, nor at compile nor at execution.
BUT, if you open the storyboard as Source code, you will be able to search by name.
PS: Save a copy of the project,
Return to the original project.
open storyboard as Source code, (you may copy it to a text file).
Now, when you search colorname, you'll get a refernce of an object (need to search a bit, before the <subviews> section.
From there you know who is using the color !
Or if you just want to rename, do it in the textfile and reopen as storyboard (don't forget to change the asset name).
That's why you need to work on a copy, in case something turn wrong and you corrupt your storyboard.