I was able to resolve the issue with the button tap by removing other .onTapGesture events from my app that might have been interfering. In my case, I had used .onTapGesture within a TabView, which was likely causing conflicts with the button’s tap recognition.