Last active
February 15, 2021 15:48
-
-
Save don1138/ab403198f28782c325be7a97440b498d to your computer and use it in GitHub Desktop.
Set custom color on List Separator in SwiftUI (deprecated in iOS 14)
This file contains hidden or 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
var body: some View { | |
// Add this right after declaring body view: | |
UITableView.appearance().separatorColor = UIColor(red:(128/255), green:(128/255), blue:(128/255), alpha: 1) | |
return NavigationView{ | |
List {} | |
.navigationBarTitle("", displayMode: .inline) | |
.navigationBarHidden(true) | |
} | |
} |
not working any more on iOS 14.x
Thanks for the notes. I've added "deprecated in iOS 14" to the title of this gist.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, not working any more on iOS 14.x