SwiftUI doesn't update second NavigationLink destination

后端 未结 3 1421
小蘑菇
小蘑菇 2021-01-14 00:48

I have a List with rows which push a View. That view has another List which pushing another View. The original List, and the first pushed List will update when the data chan

3条回答
  •  一生所求
    2021-01-14 01:29

    Ok, I think I'm starting to understand what you want. How about something like this:

    struct ContentView: View {
    
    @EnvironmentObject var app: App
    
    var body: some View {
        NavigationView {
            List(0..

提交回复
热议问题