my first view can get all the data from API request, then opened second view to change the API request data, it crashed.
below is the error
Fatal error:
if you are using sheet ore navigation you have to pass the environment Object maybe its a bug of swiftUI but it works for me in Xcode 11.5:
.sheet(isPresented: $show){ mySheetView().environmentObject(self.myEnviromentObject) }