This commit is contained in:
Max Goedjen 2020-03-07 13:11:18 -08:00
parent afa29c6a4e
commit 9a40c8ea7e
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ struct ContentView: View {
var body: some View {
NavigationView {
List {
List(selection: self.$active) {
Section(header: Text(store.name)) {
ForEach(store.secrets) { secret in
NavigationLink(destination: SecretDetailView(secret: secret), tag: secret, selection: self.$active) {
@ -21,6 +21,7 @@ struct ContentView: View {
Text("Delete")
}
}
.tag(secret)
}
}
}.onAppear {