How does the image in Asset Xcode change on its own?

Image 1 is a screenshot of the application, and image 2 is the original image. The original image is in the Asset Xcode file. As you can see, the design in the image looks different than the original image. I researched about this, it seems that compression on Xcode makes a change, but how can compression change the image this way? I selected "Render As" - "Original Image" and "Compression" - "Lossless" in the image object, but this did not help.

Original Image [!  [] [1]

+4
source share
3 answers

It looks like you have a problem with the image stretch property. Set the stretch parameter to its default value. it

X: 0 Y: 0 Width: 1 Height: 1

You can see the screenshot and let me know if it works.

+2

, , ( ):

Top:     748 x 640
Bottom:  690 x 798

, . , , , , , , .

200 x 231 -, :

enter image description here

Fill, Aspect Fit, - AspectFill. , ( ), , .

Aspect Fill, , , ... " " ( ), , " ", .

+1

It looks like you turned on Slicingfor the image. Make sure you turn off by selecting None.

enter image description here

-1
source

Source: https://habr.com/ru/post/1696353/


All Articles