Closed dangelov closed 2 years ago
Maybe put the logic in https://developer.apple.com/documentation/appkit/nsviewcontroller/1434455-viewdidappear# or https://developer.apple.com/documentation/appkit/nsview/1483329-viewdidmovetowindow/ for the controller/view of the tab.
That worked even better, thanks!
I have some animations (Lottie) in a "preview" box in a tab in Settings. When the tab switches away, the animation stops. I'd like to restart it when the tab is selected again, but I haven't found a way to detect when a tab change occurs.
Maybe I'm missing something?
Thanks!