'SceneKit repeat texture

For some reason, using the following material on an SCNBox keeps resulting in a stretched texture. Any idea where I'm missing something?

material.diffuse.contents = [SKTexture textureWithImageNamed:@"arrowtexture.jpg"];
material.diffuse.wrapS = SCNWrapModeRepeat;
material.diffuse.wrapT = SCNWrapModeRepeat;


Solution 1:[1]

You can control SKTexture's stretch this way:

material.diffuse.contentsTransform = SCNMatrix4MakeScale(3, 1, 1);

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andy Jazz