Handling multiple sizes of the same icon

To be clear, I'm not referring to the @2x/@3x sizes, I'm talking about when an icon is used elsewhere in the app but at a different size. I also realise this is a bit of a subjective question, but I'm just looking for advice and opinions, not a hard answer.


In the design of this app, several icons are used in multiple different locations at different sizes. For example, an icon might be used in the navigation bar but also in the view as a much larger version. Do I have to export these assets once for each size variant?

Replies

I have often struggled with those variants.


Finally, I usually do this:

- copy the 3 sizes in resources,

- drag to xcassets when needed (each of the 3 sizes in a common item)


I can then use the appropriate resource directly if I need, and let system adjust otherwise (like in tab bars)