David Smith on Nostr: After literal months of trying to reproduce a really weird SwiftUI bug I have FINALLY ...
After literal months of trying to reproduce a really weird SwiftUI bug I have FINALLY found a way to isolate it!
If you have a ScrollView that contains a button which presents a .sheet(), then the user backgrounds the app WHILE the sheet is presented. Then when they return to the app and dismiss the sheet the ScrollView's content looks fine but taps are offset vertically w/ the top untappable.
Anyone run into this before or know how to fix it?
Gist to reproduce it: https://gist.github.com/UnderscoreDavidSmith/08fee46b13e38347ccfc0280a415fc64
If you have a ScrollView that contains a button which presents a .sheet(), then the user backgrounds the app WHILE the sheet is presented. Then when they return to the app and dismiss the sheet the ScrollView's content looks fine but taps are offset vertically w/ the top untappable.
Anyone run into this before or know how to fix it?
Gist to reproduce it: https://gist.github.com/UnderscoreDavidSmith/08fee46b13e38347ccfc0280a415fc64