ARKit resize object along particular direction

I want to resize a object along a specific direction in arkit. For example, there is a cube on a detected plane and I want to be able to resize the cube in X direction , y direction and Z direction respectively. May I know anyone knows how to do it? Thanks