Top space came on tableview ios 15 swift

Problem: 

In tableview small space came in top of the tableview.But not given in constraints.Also it came in some devices only.


Solution:

        if #available(iOS 15.0, *){

            self.tableView.sectionHeaderTopPadding = 0.0

        }

Use the above code to remove the white space in tableview.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift