Fixes #21
This commit is contained in:
parent
afa29c6a4e
commit
9a40c8ea7e
|
@ -11,7 +11,7 @@ struct ContentView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationView {
|
NavigationView {
|
||||||
List {
|
List(selection: self.$active) {
|
||||||
Section(header: Text(store.name)) {
|
Section(header: Text(store.name)) {
|
||||||
ForEach(store.secrets) { secret in
|
ForEach(store.secrets) { secret in
|
||||||
NavigationLink(destination: SecretDetailView(secret: secret), tag: secret, selection: self.$active) {
|
NavigationLink(destination: SecretDetailView(secret: secret), tag: secret, selection: self.$active) {
|
||||||
|
@ -21,6 +21,7 @@ struct ContentView: View {
|
||||||
Text("Delete")
|
Text("Delete")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.tag(secret)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.onAppear {
|
}.onAppear {
|
||||||
|
|
Loading…
Reference in New Issue