jfversluis / been-pwned

App that leverages the haveibeenpwned.com API by Troy Hunt. This app is available in the App Stores and is used in several of my talks as well as my book Xamarin.Forms Essentials.
MIT License
16 stars 3 forks source link

Selecting item in Breaches ListView - will trigger scroll to middle #17

Open Depechie opened 7 years ago

Depechie commented 7 years ago

Very weird behaviour with the current ListView implementation on iOS. When you select a breach item to go to the breach detailed page, you'll notice that the selected item in the ListView will position itself to the middle of the ListView. So you'll see a scroll animation when page navigation is started.

Seen this in some of my own apps to, but not all of them - been discussed on Xamarin slack already with no current solution. The code that is triggering this can be found here : https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs#L955 ( cfr UITableViewScrollPosition.Middle ) But will not always be hit for some reason. Anyone an idea?