I gave up on ScrollView and moved over to Lists. Not sure what was going on here.
Post
Replies
Boosts
Views
Activity
I believe I am having this same issue (along with some others: https://developer.apple.com/forums/thread/652258) that are driving me mad, but seem to be bugs (code works perfectly in iOS 13.x like yours).
Your trick of using the object before assigning a value worked for me too! Thanks so much and thanks for filing the bug ππΎ
Noticing the scrollview also doesn't seem to be generating the views. It's blank as I scroll.
Adding to this as I can't seem to edit. The onTapGesture is actually working, and it is causing my state variable to toggle. The sheet is no longer opening up though.
I believe I am in a similar/same boat as you. I have a vertical ScrollView with a custom View populating it. This custom view has a onTapGesture. It works fine on iOS 13.x, but I just loaded up Xcode 12, recompiled, and put it on a test device running iOS 14 and the taps are no longer recognized.
I'm pretty lost on how to fix it.
I would love to see this functionality as well