Last active
February 8, 2020 17:42
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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