Tokamak icon indicating copy to clipboard operation
Tokamak copied to clipboard

`onAppear`/`onDisappear` should check actual View visibility

Open MaxDesiatov opened this issue 3 years ago • 1 comments

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.

MaxDesiatov avatar Jul 13 '20 10:07 MaxDesiatov

IntersectionObserver would be useful here

j-f1 avatar Jul 13 '20 15:07 j-f1