Ideally since most apps get used in portrait mode, you would want the vertical way. You can use a with the item size’s width set to the parent size.

Create the custom cell with a label for the step number and apply layer.cornerRadius on it. Next to this label, you can add another label for the long string.

Above the “step number” label, you can put a view with width equal to 1px and pin the to the edge of the cell and the bottom edge to the bottom edge. Hide these line views depending upon whether the cell’s index is 0 or last cell.

This should give you the idea.

Source link


Please enter your comment!
Please enter your name here