Skip to content

Instantly share code, notes, and snippets.

@sukidhar
Created August 15, 2020 15:15
Show Gist options
  • Save sukidhar/b5acb04a86f8bf8e5e83fa00d220c80b to your computer and use it in GitHub Desktop.
Save sukidhar/b5acb04a86f8bf8e5e83fa00d220c80b to your computer and use it in GitHub Desktop.
Button(action: {
index = 0
}, label: {
VStack{
Image(systemName: "clock").resizable().frame(width: 25, height: 25, alignment: .center).accentColor(index == 0 ? .black : .white)
Text("Recent").font(.caption)
.accentColor(index == 0 ? .black : .white)
}
.adding(.top, 20)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment