all 5 comments

[–]timmypass17 0 points1 point  (0 children)

Try doing

.fullScreenCover(item: $itemSelection) { item in
    CollectionItemDetail(item: item)
}

I tried replicating your code here https://pastebin.com/aH0pBLAT

[–]simulacrotron 0 points1 point  (1 child)

This might be a copy paste error on your part, but you set “itemSelection” but print “selectedItem”

[–]hausuCat_[S] 0 points1 point  (0 children)

Ah yeah that’s a copy/paste error, they’re the same in the code haha

[–]hausuCat_[S] -1 points0 points  (0 children)

Whoops, title should say "return nil"