changing property contentsGravity in transform-only layer, will have no effect

Alex Belke picture Alex Belke · Oct 17, 2015 · Viewed 29.4k times · Source

I started to create a very simple tic-tac-toe game. The main goal is to make the view proportional to all screen sizes of all iOS devices. So I put the image on a ViewController, make it full size of screen and then I put it into a Stack View. I've added constrains to this Stack View 0 to all sides. And when I ran the simulator then everything looks good. But I receive a message in console panel. What does it mean?

screenshot

Answer

Lubos Ilcik picture Lubos Ilcik · Oct 31, 2015

It could happen because you changed the Mode attribute of the StackView:

enter image description here

I got this warning when I set Mode to Aspect Fit.