I noticed issue on iOS 18 beta 6 .
.sheet(isPresented: $viewModel.showingArticleSheet, content: {
SheetView()
})
where SheetView contain some text and a dismiss button .
I noticed that the interaction is not happen on the first click , due to view is getting reloaded , which re call .task and .onAppear at the minimum .
i have no clue how to fix that and i didn't see anyone complain of this issue .
Turn out it was a much specific issue . that i had a variable AnyCancellable. that was Published in view Model. but it should've not bee published.. still can't say why it was refreshing the whole views under it . but once i made it private and non published it solved the issue.. thanks for the help .. the idea for creating small test project was the main gate .