I found a solution in images.xcassets ,
Step 1: Put the image in images.xcassets
Step 2: - Click on the image, then click on the lower right corner that says "Show Slicing" 
Step 3: - Click "Start slicing"

Step 4: - Click the "Slice Horizontally and Vertically" button

Step 5: Here you will see 3-horizontal and 3-vertical cut lines.

- Place the leftmost vertical line on the left side of the image and as the right side of the lines on the right side of the image.
- Place the topmost line at the top of the image and the bottom at the bottom of the image.
- Thus, the final result will be as follows.

Step 6: Use this image.
And now the image will be repeated.

Note. If you give a 2x image slicing, it will repeat only a 2x image, for 3x images you need to do the same slicing.
Apple example
source share