Question regarding fullScreenCover

Hello everyone,
I have a problem in a project I am currently working on. Some background information regarding the problem is that I am creating some buttons in a foreach loop in another script that retrieve information from a server. These buttons are displayed in a grid with a width of 2 entries. The element that the buttons belong to also contain a fullScreenCover functionality, but the full screen cover functionality is only being called for the top four entries in the grid but the button works on all of the entries.
Here is the partial code:

Button(action:{
            let _ = print("Button was clicked",self.title)
            isDetailPresented.toggle()
            let _ = print("Button was clicked",self.isDetailPresented)
        }) {
            VStack {
...
}
        .foregroundColor(Color.black)
        .fullScreenCover(isPresented: $isDetailPresented, onDismiss: {
            //some function is being called here
            let _ = print("Moving on")
        }, content: {
            let _ = print("I have moved on")
            //a view to be opened
        })

I already checked that the boolean changes on all entries but I can't figure out why the content is not being displayed for the entries below the 4 top ones. Any help would be appreciated.

I later on noticed that when I clicked on the favorite button that is on each entry the new view opens. So I did manage to find a way to resolve the issue, but I don't really understand why it is an issue. To resolve the problem I called the toggleFavorite function twice where viewContext.save() and viewContext.destroy() are being called to store/remove the ids of favorited entries. Could that have something to do with why the view didn't open? The only other thing in that function is that an id is being set in an extension class. I am a complete beginner with swift so any help is appreciated.

Question regarding fullScreenCover
 
 
Q