0 i would like to delete a blank space when I embebbeded a TableViewCell in my ViewController

296 Views Asked by At

I need to delete the space between tableviewcell and the safe area to add a background color

this is what i got

this is my tableview cell and my view controllerThis. is what i want, please help

[This is what i got, i need to delete that white space 2]

1

There are 1 best solutions below

1
Eduardo Santi On BEST ANSWER

I couldn't understand if you are using Xcode 13. If it's true, you can remove the "top padding".

Try make like this to remove in a specific UITableView:

tableView.sectionHeaderTopPadding = .zero

Or make like this in AppDelegate to remove to all UITableViews:

UITableView.appearance().sectionHeaderTopPadding = .zero