futurice / ios-good-practices

Good ideas for iOS development, by Futurice developers.
http://www.futurice.com
Other
10.89k stars 1.24k forks source link

What image asset do we need #70

Open PH9 opened 6 years ago

PH9 commented 6 years ago

For example: This less-than sign image is use for back button. And designer want it to be size of 32x32 for the orange bounds that you can see. What should we export? Just less-than sign image or less-than sign image with space?

screen shot 2561-05-10 at 22 20 50
kiliankoe commented 6 years ago

My personal suggestion is to generate assets in the size they're needed at, e.g. the full 32x32 for the example chevron including the margins. Otherwise you'd need changes in layout code if the image is swapped out for something that doesn't share the exact same size and aspect ratio.