SfListView return error "Object reference not set to an instance of an object" when swipe item.

Error at: iPhone 11 Pro Max 13.5
Step 1: I downloaded your project at here: GitHub
Step 2: Upgrade Sf to lastest version. (18.1.0.57)
Step 3: Run and swipe.

Error: 
  at Xamarin.Forms.Platform.iOS.VisualElementTracker.UpdateClip () [0x00072] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementTracker.cs:413 
  at Xamarin.Forms.Platform.iOS.VisualElementTracker.UpdateNativeControl () [0x0006c] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementTracker.cs:386 
  at Xamarin.Forms.Platform.iOS.VisualElementTracker.HandlePropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00064] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementTracker.cs:97 
  at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:229 
  at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:353 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:461 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:397 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x00042] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:334 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindablePropertyKey propertyKey, System.Object value) [0x0000e] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:318 
  at Xamarin.Forms.VisualElement.set_X (System.Double value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:463 
  at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x00043] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:314 
  at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:708 
  at Syncfusion.ListView.XForms.LayoutBase.LayoutSwipedItem (Syncfusion.ListView.XForms.ListViewItem item, System.Boolean canAnimateReset, System.Boolean canAnimateLayout) [0x001c5] in <ee55715f4e8e4345b1e86268c4bf6e03>:0 
  at Syncfusion.ListView.XForms.SwipeController.LayoutSwipeView (Syncfusion.ListView.XForms.ListViewItemInfoBase itemInfo, System.Boolean canAnimate) [0x00011] in <ee55715f4e8e4345b1e86268c4bf6e03>:0 
  at Syncfusion.ListView.XForms.SwipeController.ProcessTouchMove (Syncfusion.ListView.XForms.ListViewItemInfoBase itemInfo, Xamarin.Forms.Point point) [0x0022d] in <ee55715f4e8e4345b1e86268c4bf6e03>:0 
  at Syncfusion.ListView.XForms.SwipeController.HandleTouchInteractions (Syncfusion.ListView.XForms.ListViewItemInfoBase itemInfo, Xamarin.Forms.GestureStatus status, Xamarin.Forms.Point point) [0x00068] in <ee55715f4e8e4345b1e86268c4bf6e03>:0 
  at Syncfusion.ListView.XForms.iOS.ListViewItemRenderer.OnPanChanged (UIKit.UIPanGestureRecognizer panGesture) [0x000e3] in <a2150a9aa7204a3f85fe0c4bec5b8fe9>:0 
  at UIKit.UIPanGestureRecognizer+Callback.Activated (UIKit.UIPanGestureRecognizer sender) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.18.2.1/src/Xamarin.iOS/UIKit/UIGestureRecognizer.cs:247 
--- End of stack trace from previous location where exception was thrown ---

  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.18.2.1/src/Xamarin.iOS/UIKit/UIApplication.cs:86 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.18.2.1/src/Xamarin.iOS/UIKit/UIApplication.cs:65 
  at ListViewSwiping.iOS.Application.Main (System.String[] args) [0x00001] in D:\Source\Customize-swipe-view-in-xamarin-forms-listview--master\ListViewSwiping\ListViewSwiping\ListViewSwiping.iOS\Main.cs:17 

Attachment: ListViewSwiping_147f5934.zip

1 Reply

LN Lakshmi Natarajan Syncfusion Team June 23, 2020 05:53 AM UTC

Hi Nguyen,  
  
Thank you for using Syncfusion products.  
  
We have checked the reported query “SfListView Swiping breaking with Xamarin.Forms version 4.7” from our end. On further analysis, we would like to inform you that the reported issue is a break from Xamarin.Forms version 4.7. Kindly follow up with the following bug report for further updates,  
  
  
Please let us know if you need further assistance.  
  
Regards,  
Lakshmi Natarajan  


Loader.
Up arrow icon