payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/martijn00/LottieXamarin/issues/215","repository_url":"https://api.github.com/repos/martijn00/LottieXamarin","labels_url":"https://api.github.com/repos/martijn00/LottieXamarin/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/martijn00/LottieXamarin/issues/215/comments","events_url":"https://api.github.com/repos/martijn00/LottieXamarin/issues/215/events","html_url":"https://github.com/martijn00/LottieXamarin/issues/215","id":424673139,"node_id":"MDU6SXNzdWU0MjQ2NzMxMzk=","number":215,"title":"[iOS] Animation is not released when ListView is refreshed","user":{"login":"adrianknight89","id":16855542,"node_id":"MDQ6VXNlcjE2ODU1NTQy","avatar_url":"https://avatars2.githubusercontent.com/u/16855542?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianknight89","html_url":"https://github.com/adrianknight89","followers_url":"https://api.github.com/users/adrianknight89/followers","following_url":"https://api.github.com/users/adrianknight89/following{/other_user}","gists_url":"https://api.github.com/users/adrianknight89/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianknight89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianknight89/subscriptions","organizations_url":"https://api.github.com/users/adrianknight89/orgs","repos_url":"https://api.github.com/users/adrianknight89/repos","events_url":"https://api.github.com/users/adrianknight89/events{/privacy}","received_events_url":"https://api.github.com/users/adrianknight89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-24T23:17:56Z","updated_at":"2019-03-24T23:17:56Z","closed_at":null,"author_association":"NONE","body":"## 🐛 Bug Report\r\n\r\nI'm showing a Lottie animation in a `DataTemplate` using `DataTemplateSelector`. When a `ListView` is refreshed, the old animation is not disposed. Setting the binding context of the list view to a new view model does not get rid of the animation. Please run the attachment and observe that multiple instances of the same animation are being overlaid on top of each other. I did not see this issue on Android.\r\n\r\n### Expected behavior\r\n\r\nOld instances of `AnimationView` should be properly disposed.\r\n\r\n### Reproduction steps\r\n\r\n[App1546.zip](https://github.com/martijn00/LottieXamarin/files/3000980/App1546.zip)\r\n\r\n### Configuration\r\n\r\nXF: 4.0.0.250467-pre7\r\nLottie: 2.7.1\r\n\r\n**Platform:** \r\n- [x] :iphone: iOS\r\n- [ ] :robot: Android\r\n- [ ] :checkered_flag: WPF\r\n- [ ] :earth_americas: UWP\r\n- [ ] :apple: MacOS\r\n- [ ] :tv: tvOS\r\n- [x] :monkey: Xamarin.Forms\r\n"}}
other: {"actor":{"display_login":"adrianknight89"}}