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 top to the top 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.