Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which resolution of images to use for watch kit?

Images.xcassets in watchkit has options for 1x, 2x and 3x.

But how do we know which one to use ? Both are retina, but have different screen sizes. Do we have to supply all three? What happens if you don't ?

EDIT: I have tried putting the image in 1x and 2x, and haven't noticed any difference so far, but that could just be an absence of my testing. Nothing else.

like image 592
Rahul Iyer Avatar asked Dec 24 '22 21:12

Rahul Iyer


2 Answers

They are all @2x. You can configure your xcassets image set to actually be specific for the Apple Watch by specifying the device. Below is a screenshot demonstrating how to do this.

Apple Watch Image Set

Hopefully that helps clarify things.

like image 157
cnoon Avatar answered Jan 28 '23 05:01

cnoon


It'll use the closest available match. But the Watch is retina native so ideally you would provide just @2x; bundling more will just take up unneeded space.

like image 34
gregheo Avatar answered Jan 28 '23 06:01

gregheo