Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created June 28, 2020 16:29
Show Gist options
  • Save azamsharp/93b9a452f3342764f16fe840ae47e1a4 to your computer and use it in GitHub Desktop.
Save azamsharp/93b9a452f3342764f16fe840ae47e1a4 to your computer and use it in GitHub Desktop.
func headerView(_ index: Int) -> some View {
Section {
Text("Section \(index)")
.padding()
.foregroundColor(Color.white)
.font(.title)
.frame(maxWidth: .infinity)
.background(Color.blue)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment