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

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 and want to learn more, check out The Complete iOS Developer Bootcamp. Speed up your learning curve - hundreds of students have already joined. Thanks for reading!
Profile Picture of Eddy Chung

Eddy Chung

I teach iOS development on ZeroToAppStore.com.

Similar Posts