Custom Cell content doesn't take up the entire width of the Table View

124 Views Asked by At

When I stretch the cell in the .xib file everything works, but when I run the app, the content of the cell doesn't fill the entire space (first image). The cell itself and Content View in it take whole space (second image). I've set constraints of the Bg View like trailing = Bg View.trailing (Bg View is this view that doesn't want to stretch)

App screenshot
Debug View screenshot

It's my first question, I'm sorry if it's not descriptive enough.

1

There are 1 best solutions below

0
Robert Pelka On BEST ANSWER

After several hours of searching for the solution I decided to start over. I deleted the .xib file, made a new cell and now it's working great.

screenshot