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:
The whole issue is very easy to fix just add self.networkManager @ EarthQuakeList.swift
.sheet(isPresented: $showEditPage) { return EditPage().environmentObject(self.networkManager)
I got the reason and inspired from article: https://github.com/peterfriese/Swift-EnvironmentObject-Demo