I want to make my button horizontaly and vertically stretchable.
In the storyboard everything is okay
But in SpriteKit is not the same!
I'am loading the image using
let spriteTexture = SKTexture(imageNamed: "button");
let sprite = SKSpriteNode(texture: spriteTexture, color: nil, size: CGSizeMake(290, 400));
If centeRect, yScale, xScale are set the button will streach properly