Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Assertion failure in UITableView when updating viewmodel databound to ListView

$
0
0

I'm developing a Xamarin Forms app that asynchronously gets updated models from the server that need to be merged into the information shown in the UI. I accomplish this by having my viewmodels subscribe to a MessagingCenter topic to which the updated models are broadcasted. When the viewmodels receive the message, they merge in the updated data, and it appears in the UI via data-binding.

This works fine on Android, but on iOS, when an update is made to the viewmodel I get this error, which crashes the app:

*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-3318.16.14/UITableView.m:1582

It seems to me like this should work, so I filed a bug on it along with a project that reproduces the problem: Xamarin bug.

Has anyone else seen this? Is there a different approach I should be taking to update the data shown in the view?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>