Skip to content

Instantly share code, notes, and snippets.

@dfrobison
Last active February 8, 2020 17:42
Show Gist options
  • Save dfrobison/0b423f5b7c61164a531b6dbe8711ba16 to your computer and use it in GitHub Desktop.
Save dfrobison/0b423f5b7c61164a531b6dbe8711ba16 to your computer and use it in GitHub Desktop.
[Remove dividers] Current way of removing the dividing lines on List, Form, etc.
struct Container: View {
init() {
// To remove only extra separators below the list:
UITableView.appearance().tableFooterView = UIView()
// To remove all separators including the actual ones:
UITableView.appearance().separatorStyle = .none
}
var body: some View {
List {
Text("1")
Text("2")
Text("3")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment