How To Remove Divider or Separator In Table View Programmatically in Swift

By Eddy Chung

UITableViews come with a default divider line. Sometimes your design calls for it to be removed.

How To Remove Divider/Separator In Table View Programmatically in Swift

In your viewDidLoad():

tableView.separatorStyle = .none

Now your table view will not show a separator!

If you liked this post, you'll love my free guide: Secrets To iOS Development. Speed up your learning curve - hundreds of students have already downloaded. Thanks for reading!
Profile Picture of Eddy Chung

Eddy Chung

I am a professional iOS developer in Silicon Valley. I teach iOS development on If you'd like to learn more about me click here or you can contact me at:

Similar Posts