title: SwiftUI Reload View
body: <p>I have a struct which shuffles and Lists records from CoreData.
  I would like to reload / Refresh the List view with a Button.
  I tried to use a function from within the Button. 
  Is there a way I can do this?</p>
  
  <pre><code>    var body: some View {
  
  
              VStack {
  
                         List {
  
                             ForEach(dictionary.shuffled().prefix(upTo: 10),id: \.self) { word in
  
  
                              HStack {
                                 Text("\(word.englishWord)")
                                      .foregroundColor(Color.blue)
  
                                  Text("| \(word.urhoboWord) |")
                                      .foregroundColor(Color.green)
  
                                  Image(word.imageName)
                                      .resizable()
                                      .frame(width:40, height: 40)
  
  
                              }//HStack
  
                             }//End of ForEach
  
                          }//End of List
  
                  //Button to reload and shuffle list
                  Button(action: {}) {
  
                      Text("Shuffle")
                          .padding()
                          .background(Color.black)
                          .foregroundColor(Color.white)
                          .cornerRadius(6)
                  }
  
  
                          .navigationBarTitle(Text("Begin Learning"),displayMode: .inline)
  
  
  </code></pre>