I don't know how to stretch the four corners of the material in the Slicing of the iOS AssetsCatalog.

Asked 2 years ago, Updated 2 years ago, 44 views

I would like to fix (centralize, do not extend) the middle element of the Assets Catalog and repeat the appropriate color according to the width of the screen, but I am having trouble because I do not know how to extend the four corners.

The purpose is to dynamically generate placeholder images.

*For example, I want to increase the gray color by fixing the size of the numbers on the website below.
http://via.placeholder.com/350x150

While I was looking into it, I thought I couldn't stretch out the four corners using Slicing in the Assets Catalog. Could you tell me how best to make it happen?

ios

2022-09-30 14:51

1 Answers

Slicing is a function that secures the edge and extends the center, so I don't think you can make it work as you want.

Alternatively,

I think it is around.
If you want to display a string in the center, I think 2. is easy.


2022-09-30 14:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.