Tokamak
Tokamak copied to clipboard
`onAppear`/`onDisappear` should check actual View visibility
Currently closures passed to onAppear
/onDisappear
are evaluated on mounting and unmounting, there are no checks for whether views actually appear or disappear from the viewport. As far as I understand, SwiftUI actually does these checks.
IntersectionObserver
would be useful here