alexrainman / CarouselView

CarouselView control for Xamarin Forms
MIT License
436 stars 176 forks source link

Infinite scrolling CarouselView #548

Closed wegascee closed 4 years ago

wegascee commented 5 years ago

I'm trying to implement a infinite scrolling carousel view. But that doesn't quite work well. First, the documentation imho is wrong:

Render one page at a time, no swiping, move back and fort programmatically:

myCarousel.ItemsSource = new List<int> { 0 }; // only one item in ItemsSource

To move forward:

public async void OnNext(object sender, TappedEventArgs e)
{
  if (myCarousel.ItemsSource[0] < 4)
  {
      myCarousel.ItemsSource.Add(myCarousel.ItemsSource[0] + 1);
      myCarousel.ItemsSource.RemoveAt(0);
  }
}

To move backward:

public async void OnPrev(object sender, TappedEventArgs e)
{
  if (myCarousel.ItemsSource[0] > 0)
  {
      myCarousel.ItemsSource = new List<int>() { myCarousel.ItemsSource[0] - 1,  myCarousel.ItemsSource[0] };
      await Task.Delay(100);
      myCarousel.AnimateTransition = false;
      myCarousel.Position = 1;
      myCarousel.AnimateTransition = true;
      myCarousel.ItemsSource.RemoveAt(1);
  }
}

I can't use ItemSource and call the methods Add() or RemoveAt() on it. You can only do this on your enumaration object on your model. Furthermore, I don't get why you use Task.Delay(100);, AnimateTransition and Position. But the issue more is, that if I add or remove an item from my model, the position in the carousel view changes. This could be solved by setting the position I believe.

But my main issue currently is, that I get the following error on inserting/removing items in the carousel view:

Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Invalid parameter not satisfying: [views count] == 3

I don't fully understand why this happens. Sometimes it doesn't happens, but now it always happens. Here is the full output from the console:

2019-09-27 15:29:32.411 TestCarouselView.iOS[1280:11198793] *** Assertion failure in -[_UIQueuingScrollView _replaceViews:updatingContents:adjustContentInsets:animated:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.54.4/_UIQueuingScrollView.m:395
Unhandled Exception:

Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: Invalid parameter not satisfying: [views count] == 3
Native stack trace:
    0   CoreFoundation                      0x00000001824feda4 <redacted> + 252
    1   libobjc.A.dylib                     0x00000001816b85ec objc_exception_throw + 56
    2   CoreFoundation                      0x00000001824febf8 <redacted> + 0
    3   Foundation                          0x0000000182eeefa0 <redacted> + 112
    4   UIKit                               0x000000018cbc274c <redacted> + 856
    5   UIKit                               0x000000018cbc5c18 <redacted> + 1040
    6   UIKit                               0x000000018cbc188c <redacted> + 56
    7   UIKit                               0x000000018c31d450 <redacted> + 44
    8   UIKit                               0x000000018c31d210 <redacted> + 320
    9   UIKit                               0x000000018c31c1a0 <redacted> + 2488
    10  UIKit                               0x000000018c31cda0 <redacted> + 404
    11  QuartzCore                          0x0000000186570f4c <redacted> + 820
    12  IOKit                               0x000000018276748c IODispatchCalloutFromCFMessage + 492
    13  CoreFoundation                      0x000000018248cb20 <redacted> + 188
    14  CoreFoundation                      0x00000001824a7ae8 <redacted> + 56
    15  CoreFoundation                      0x00000001824a7230 <redacted> + 440
    16  CoreFoundation                      0x00000001824a4c80 <redacted> + 2456
    17  CoreFoundation                      0x00000001823c4da8 CFRunLoopRunSpecific + 552
    18  GraphicsServices                    0x00000001843aa020 GSEventRunModal + 100
    19  UIKit                               0x000000018c3e4758 UIApplicationMain + 236
    20  TestCarouselView.iOS                0x0000000104a54538 TestCarouselView.iOS + 4228408
    21  TestCarouselView.iOS                0x00000001049e472c TestCarouselView.iOS + 3770156
    22  TestCarouselView.iOS                0x00000001049e46ec TestCarouselView.iOS + 3770092
    23  TestCarouselView.iOS                0x0000000104676d10 TestCarouselView.iOS + 175376
    24  TestCarouselView.iOS                0x0000000104946058 TestCarouselView.iOS + 3121240
    25  TestCarouselView.iOS                0x00000001058b0da4 mono_pmip + 24460
    26  TestCarouselView.iOS                0x000000010591e198 mono_pmip + 471936
    27  TestCarouselView.iOS                0x00000001059233c0 mono_pmip + 492968
    28  TestCarouselView.iOS                0x0000000105897cf8 TestCarouselView.iOS + 19184888
    29  TestCarouselView.iOS                0x00000001059c8d8c _Z9__isctypeim + 46888
    30  TestCarouselView.iOS                0x0000000104676c0c TestCarouselView.iOS + 175116
    31  libdyld.dylib                       0x0000000181e55fc0 <redacted> + 4

2019-09-27 15:29:41.285 TestCarouselView.iOS[1280:11198793] 
Unhandled Exception:
Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: Invalid parameter not satisfying: [views count] == 3
Native stack trace:
    0   CoreFoundation                      0x00000001824feda4 <redacted> + 252
    1   libobjc.A.dylib                     0x00000001816b85ec objc_exception_throw + 56
    2   CoreFoundation                      0x00000001824febf8 <redacted> + 0
    3   Foundation                          0x0000000182eeefa0 <redacted> + 112
    4   UIKit                               0x000000018cbc274c <redacted> + 856
    5   UIKit                               0x000000018cbc5c18 <redacted> + 1040
    6   UIKit                               0x000000018cbc188c <redacted> + 56
    7   UIKit                               0x000000018c31d450 <redacted> + 44
    8   UIKit                               0x000000018c31d210 <redacted> + 320
    9   UIKit                               0x000000018c31c1a0 <
redacted> + 2488
    10  UIKit                               0x000000018c31cda0 <redacted> + 404
    11  QuartzCore                          0x0000000186570f4c <redacted> + 820
    12  IOKit                               0x000000018276748c IODispatchCalloutFromCFMessage + 492
    13  CoreFoundation                      0x000000018248cb20 <redacted> + 188
    14  CoreFoundation                      0x00000001824a7ae8 <redacted> + 56
    15  CoreFoundation                      0x00000001824a7230 <redacted> + 440
    16  CoreFoundation                      0x00000001824a4c80 <redacted> + 2456
    17  CoreFoundation                      0x00000001823c4da8 CFRunLoopRunSpecific + 552
    18  GraphicsServices                    0x00000001843aa020 GSEventRunModal + 100
    19  UIKit                               0x000000018c3e4758 UIApplicationMain + 236
    20  TestCarouselView.iOS                0x0000000104a54538 TestCarouselView.iOS + 4228408
    21  TestCarouselView.iOS                0x00000001049e472c TestCarouselView.iOS + 3770156
    22  TestCaro
uselView.iOS                0x00000001049e46ec TestCarouselView.iOS + 3770092
    23  TestCarouselView.iOS                0x0000000104676d10 TestCarouselView.iOS + 175376
    24  TestCarouselView.iOS                0x0000000104946058 TestCarouselView.iOS + 3121240
    25  TestCarouselView.iOS                0x00000001058b0da4 mono_pmip + 24460
    26  TestCarouselView.iOS                0x000000010591e198 mono_pmip + 471936
    27  TestCarouselView.iOS                0x00000001059233c0 mono_pmip + 492968
    28  TestCarouselView.iOS                0x0000000105897cf8 TestCarouselView.iOS + 19184888
    29  TestCarouselView.iOS                0x00000001059c8d8c _Z9__isctypeim + 46888
    30  TestCarouselView.iOS                0x0000000104676c0c TestCarouselView.iOS + 175116
    31  libdyld.dylib                       0x0000000181e55fc0 <redacted> + 4

  at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/src/Xamarin.iOS/ObjCRuntime/Runtime.cs:398 

  at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/runtime/Delegates.generated.cs:128 
  at (wrapper native-to-managed) ObjCRuntime.Runtime.throw_ns_exception(intptr)
  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/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at TestCarouselView.iOS.Application.Main (System.String[] args) [0x00001] in C:\Projects\TestCarouselView\TestCarouselView\TestCarouselView.iOS\Main.cs:17 
--- End of stack trace from previous location where ex
ception 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/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at TestCarouselView.iOS.Application.Main (System.String[] args) [0x00001] in C:\Projects\TestCarouselView\TestCarouselView\TestCarouselView.iOS\Main.cs:17    0   CoreFoundation                      0x00000001824feda4 <redacted> + 252
    1   libobjc.A.dylib                     0x00000001816b85ec objc_exception_throw + 56
    2   CoreFoundation                      0x00000001824febf8 <redacted> + 0
    3   Foundation                          0x00000001
82eeefa0 <redacted> + 112
    4   UIKit                               0x000000018cbc274c <redacted> + 856
    5   UIKit                               0x000000018cbc5c18 <redacted> + 1040
    6   UIKit                               0x000000018cbc188c <redacted> + 56
    7   UIKit                               0x000000018c31d450 <redacted> + 44
    8   UIKit                               0x000000018c31d210 <redacted> + 320
    9   UIKit                               0x000000018c31c1a0 <redacted> + 2488
    10  UIKit                               0x000000018c31cda0 <redacted> + 404
    11  QuartzCore                          0x0000000186570f4c <redacted> + 820
    12  IOKit                               0x000000018276748c IODispatchCalloutFromCFMessage + 492
    13  CoreFoundation                      0x000000018248cb20 <redacted> + 188
    14  CoreFoundation                      0x00000001824a7ae8 <redacted> + 56
    15  CoreFoundation                      0x00000001824a7230 <redacted> + 440
    16  CoreFoundation                      0x00000001824a
4c80 <redacted> + 2456
    17  CoreFoundation                      0x00000001823c4da8 CFRunLoopRunSpecific + 552
    18  GraphicsServices                    0x00000001843aa020 GSEventRunModal + 100
    19  UIKit                               0x000000018c3e4758 UIApplicationMain + 236
    20  TestCarouselView.iOS                0x0000000104a54538 TestCarouselView.iOS + 4228408
    21  TestCarouselView.iOS                0x00000001049e472c TestCarouselView.iOS + 3770156
    22  TestCarouselView.iOS                0x00000001049e46ec TestCarouselView.iOS + 3770092
    23  TestCarouselView.iOS                0x0000000104676d10 TestCarouselView.iOS + 175376
    24  TestCarouselView.iOS                0x0000000104946058 TestCarouselView.iOS + 3121240
    25  TestCarouselView.iOS                0x00000001058b0da4 mono_pmip + 24460
    26  TestCarouselView.iOS                0x000000010591e198 mono_pmip + 471936
    27  TestCarouselView.iOS                0x00000001059233c0 mono_pmip + 492968
    28  TestCarouselView.iOS                0x0000000105897cf
8 TestCarouselView.iOS + 19184888
    29  TestCarouselView.iOS                0x00000001059c8d8c _Z9__isctypeim + 46888
    30  TestCarouselView.iOS                0x0000000104676c0c TestCarouselView.iOS + 175116
    31  libdyld.dylib                       0x0000000181e55fc0 <redacted> + 4

2019-09-27 15:29:41.291 TestCarouselView.iOS[1280:11198793] Unhandled managed exception:
Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: Invalid parameter not satisfying: [views count] == 3
Native stack trace:
    0   CoreFoundation                      0x00000001824feda4 <redacted> + 252
    1   libobjc.A.dylib                     0x00000001816b85ec objc_exception_throw + 56
    2   CoreFoundation                      0x00000001824febf8 <redacted> + 0
    3   Foundation                          0x0000000182eeefa0 <redacted> + 112
    4   UIKit                               0x000000018cbc274c <redacted> + 856
    5   UIKit                               0x000000018cbc5c18 <redacted> + 1040
    6   UIKit                     
          0x000000018cbc188c <redacted> + 56
    7   UIKit                               0x000000018c31d450 <redacted> + 44
    8   UIKit                               0x000000018c31d210 <redacted> + 320
    9   UIKit                               0x000000018c31c1a0 <redacted> + 2488
    10  UIKit                               0x000000018c31cda0 <redacted> + 404
    11  QuartzCore                          0x0000000186570f4c <redacted> + 820
    12  IOKit                               0x000000018276748c IODispatchCalloutFromCFMessage + 492
    13  CoreFoundation                      0x000000018248cb20 <redacted> + 188
    14  CoreFoundation                      0x00000001824a7ae8 <redacted> + 56
    15  CoreFoundation                      0x00000001824a7230 <redacted> + 440
    16  CoreFoundation                      0x00000001824a4c80 <redacted> + 2456
    17  CoreFoundation                      0x00000001823c4da8 CFRunLoopRunSpecific + 552
    18  GraphicsServices                    0x00000001843aa020 GSEventRunModal + 100
    19  UIKit          
                     0x000000018c3e4758 UIApplicationMain + 236
    20  TestCarouselView.iOS                0x0000000104a54538 TestCarouselView.iOS + 4228408
    21  TestCarouselView.iOS                0x00000001049e472c TestCarouselView.iOS + 3770156
    22  TestCarouselView.iOS                0x00000001049e46ec TestCarouselView.iOS + 3770092
    23  TestCarouselView.iOS                0x0000000104676d10 TestCarouselView.iOS + 175376
    24  TestCarouselView.iOS                0x0000000104946058 TestCarouselView.iOS + 3121240
    25  TestCarouselView.iOS                0x00000001058b0da4 mono_pmip + 24460
    26  TestCarouselView.iOS                0x000000010591e198 mono_pmip + 471936
    27  TestCarouselView.iOS                0x00000001059233c0 mono_pmip + 492968
    28  TestCarouselView.iOS                0x0000000105897cf8 TestCarouselView.iOS + 19184888
    29  TestCarouselView.iOS                0x00000001059c8d8c _Z9__isctypeim + 46888
    30  TestCarouselView.iOS                0x0000000104676c0c TestCarouselView.iOS + 175116
    31  
libdyld.dylib                       0x0000000181e55fc0 <redacted> + 4
 (Foundation.MonoTouchException)
  at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/src/Xamarin.iOS/ObjCRuntime/Runtime.cs:398 
  at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/runtime/Delegates.generated.cs:128 
  at (wrapper native-to-managed) ObjCRuntime.Runtime.throw_ns_exception(intptr)
  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/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamar
in.iOS.framework/Versions/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at TestCarouselView.iOS.Application.Main (System.String[] args) [0x00001] in C:\Projects\TestCarouselView\TestCarouselView\TestCarouselView.iOS\Main.cs:17 
--- 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/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.4.0.64/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at TestCarouselView.iOS.Application.Main (System.String[] args) [0x00001] in C:\Projects\TestCarouselView\TestCarouselView\TestCarouselView.iOS\Main.cs:1
7 
2019-09-27 15:29:41.292 TestCarouselView.iOS[1280:11198793] critical: Stacktrace:

2019-09-27 15:29:41.292 TestCarouselView.iOS[1280:11198793] critical: 
Native stacktrace:

2019-09-27 15:29:41.296 TestCarouselView.iOS[1280:11198793] critical:   0   TestCarouselView.iOS                0x00000001058a19f8 TestCarouselView.iOS + 19225080
2019-09-27 15:29:41.296 TestCarouselView.iOS[1280:11198793] critical:   1   libsystem_platform.dylib            0x0000000182120b58 _sigtramp + 52
2019-09-27 15:29:41.297 TestCarouselView.iOS[1280:11198793] critical:   2   libsystem_pthread.dylib             0x0000000182126288 <redacted> + 376
2019-09-27 15:29:41.297 TestCarouselView.iOS[1280:11198793] critical:   3   libsystem_c.dylib                   0x0000000181ef3d0c abort + 140
2019-09-27 15:29:41.298 TestCarouselView.iOS[1280:11198793] critical:   4   TestCarouselView.iOS                0x00000001059ba968 xamarin_get_block_descriptor + 8664
2019-09-27 15:29:41.299 TestCarouselView.iOS[1280:11198793] critical:   5   TestCarous
elView.iOS                0x00000001058e1d74 mono_pmip + 225116
2019-09-27 15:29:41.299 TestCarouselView.iOS[1280:11198793] critical:   6   TestCarouselView.iOS                0x00000001058a1648 TestCarouselView.iOS + 19224136
2019-09-27 15:29:41.300 TestCarouselView.iOS[1280:11198793] critical:   7   TestCarouselView.iOS                0x00000001058a0380 TestCarouselView.iOS + 19219328
2019-09-27 15:29:41.300 TestCarouselView.iOS[1280:11198793] critical:   8   TestCarouselView.iOS                0x0000000105898510 TestCarouselView.iOS + 19186960
2019-09-27 15:29:41.301 TestCarouselView.iOS[1280:11198793] critical:   9   TestCarouselView.iOS                0x0000000104979418 TestCarouselView.iOS + 3331096
2019-09-27 15:29:41.302 TestCarouselView.iOS[1280:11198793] critical:   10  TestCarouselView.iOS                0x00000001059ba6d4 xamarin_get_block_descriptor + 8004
2019-09-27 15:29:41.302 TestCarouselView.iOS[1280:11198793] critical:   11  TestCarouselView.iOS                0x00000001059ba554 xamarin_get_block
ouselView.iOS[1280:11198793] critical:  18  TestCarouselView.iOS                0x00000001049cd774 TestCarouselView.iOS + 3676020
2019-09-27 15:29:41.307 TestCarouselView.iOS[1280:11198793] critical:   19  TestCarouselView.iOS                0x0000000104a55098 TestCarouselView.iOS + 4231320
2019-09-27 15:29:41.308 TestCarouselView.iOS[1280:11198793] critical:   20  TestCarouselView.iOS                0x00000001059b89f8 xamarin_get_block_descriptor + 616
2019-09-27 15:29:41.308 TestCarouselView.iOS[1280:11198793] critical:   21  TestCarouselView.iOS                0x00000001059bb070 xamarin_find_protocol_wrapper_type + 1752
2019-09-27 15:29:41.309 TestCarouselView.iOS[1280:11198793] critical:   22  CoreFoundation                      0x00000001824ff1c8 <redacted> + 828
2019-09-27 15:29:41.309 TestCarouselView.iOS[1280:11198793] critical:   23  libobjc.A.dylib                     0x00000001816b88c8 <redacted> + 112
2019-09-27 15:29:41.310 TestCarouselView.iOS[1280:11198793] critical:   24  libc++abi.dylib            
         0x00000001816a837c <redacted> + 16
2019-09-27 15:29:41.310 TestCarouselView.iOS[1280:11198793] critical:   25  libc++abi.dylib                     0x00000001816a7ccc <redacted> + 0
2019-09-27 15:29:41.311 TestCarouselView.iOS[1280:11198793] critical:   26  libobjc.A.dylib                     0x00000001816b8720 <redacted> + 0
2019-09-27 15:29:41.312 TestCarouselView.iOS[1280:11198793] critical:   27  QuartzCore                          0x0000000186571004 <redacted> + 1004
2019-09-27 15:29:41.312 TestCarouselView.iOS[1280:11198793] critical:   28  IOKit                               0x000000018276748c IODispatchCalloutFromCFMessage + 492
2019-09-27 15:29:41.313 TestCarouselView.iOS[1280:11198793] critical:   29  CoreFoundation                      0x000000018248cb20 <redacted> + 188
2019-09-27 15:29:41.313 TestCarouselView.iOS[1280:11198793] critical:   30  CoreFoundation                      0x00000001824a7ae8 <redacted> + 56
2019-09-27 15:29:41.314 TestCarouselView.iOS[1280:11198793] critical:   31  CoreFou
ndation                      0x00000001824a7230 <redacted> + 440
2019-09-27 15:29:41.314 TestCarouselView.iOS[1280:11198793] critical:   32  CoreFoundation                      0x00000001824a4c80 <redacted> + 2456
2019-09-27 15:29:41.315 TestCarouselView.iOS[1280:11198793] critical:   33  CoreFoundation                      0x00000001823c4da8 CFRunLoopRunSpecific + 552
2019-09-27 15:29:41.315 TestCarouselView.iOS[1280:11198793] critical:   34  GraphicsServices                    0x00000001843aa020 GSEventRunModal + 100
2019-09-27 15:29:41.315 TestCarouselView.iOS[1280:11198793] critical:   35  UIKit                               0x000000018c3e4758 UIApplicationMain + 236
2019-09-27 15:29:41.316 TestCarouselView.iOS[1280:11198793] critical:   36  TestCarouselView.iOS                0x0000000104a54538 TestCarouselView.iOS + 4228408
2019-09-27 15:29:41.316 TestCarouselView.iOS[1280:11198793] critical:   37  TestCarouselView.iOS                0x00000001049e472c TestCarouselView.iOS + 3770156
2019-09-27 15:29:41.316 Te
stCarouselView.iOS[1280:11198793] critical:     38  TestCarouselView.iOS                0x00000001049e46ec TestCarouselView.iOS + 3770092
2019-09-27 15:29:41.317 TestCarouselView.iOS[1280:11198793] critical:   39  TestCarouselView.iOS                0x0000000104676d10 TestCarouselView.iOS + 175376
2019-09-27 15:29:41.317 TestCarouselView.iOS[1280:11198793] critical:   40  TestCarouselView.iOS                0x0000000104946058 TestCarouselView.iOS + 3121240
2019-09-27 15:29:41.318 TestCarouselView.iOS[1280:11198793] critical:   41  TestCarouselView.iOS                0x00000001058b0da4 mono_pmip + 24460
2019-09-27 15:29:41.318 TestCarouselView.iOS[1280:11198793] critical:   42  TestCarouselView.iOS                0x000000010591e198 mono_pmip + 471936
2019-09-27 15:29:41.318 TestCarouselView.iOS[1280:11198793] critical:   43  TestCarouselView.iOS                0x00000001059233c0 mono_pmip + 492968
2019-09-27 15:29:41.319 TestCarouselView.iOS[1280:11198793] critical:   44  TestCarouselView.iOS                0x000000010
_descriptor + 7620
2019-09-27 15:29:41.303 TestCarouselView.iOS[1280:11198793] critical:   12  TestCarouselView.iOS                0x00000001059ba510 xamarin_get_block_descriptor + 7552
2019-09-27 15:29:41.304 TestCarouselView.iOS[1280:11198793] critical:   13  TestCarouselView.iOS                0x00000001058a1580 TestCarouselView.iOS + 19223936
2019-09-27 15:29:41.304 TestCarouselView.iOS[1280:11198793] critical:   14  TestCarouselView.iOS                0x00000001058a0380 TestCarouselView.iOS + 19219328
2019-09-27 15:29:41.305 TestCarouselView.iOS[1280:11198793] critical:   15  TestCarouselView.iOS                0x0000000105898510 TestCarouselView.iOS + 19186960
2019-09-27 15:29:41.305 TestCarouselView.iOS[1280:11198793] critical:   16  TestCarouselView.iOS                0x0000000104979418 TestCarouselView.iOS + 3331096
2019-09-27 15:29:41.306 TestCarouselView.iOS[1280:11198793] critical:   17  TestCarouselView.iOS                0x00000001049d03b0 TestCarouselView.iOS + 3687344
2019-09-27 15:29:41.307 TestCar
5897cf8 TestCarouselView.iOS + 19184888
2019-09-27 15:29:41.319 TestCarouselView.iOS[1280:11198793] critical:   45  TestCarouselView.iOS                0x00000001059c8d8c _Z9__isctypeim + 46888
2019-09-27 15:29:41.320 TestCarouselView.iOS[1280:11198793] critical:   46  TestCarouselView.iOS                0x0000000104676c0c TestCarouselView.iOS + 175116
2019-09-27 15:29:41.320 TestCarouselView.iOS[1280:11198793] critical:   47  libdyld.dylib                       0x0000000181e55fc0 <redacted> + 4
2019-09-27 15:29:41.320 TestCarouselView.iOS[1280:11198793] critical: 
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================The app has been terminated.

Failed to Stop app:  An error occured on client IDB412383 while executing a reply for topic xvs/idb/4.12.3.83/stop-app
The app has been terminated.

I have attached the sample project so that you can have a look at it. Look at MainPage.xaml.cs and swipe until you reach the start/end. I'm testing directly on the device (iPad).

Sample project.zip

alexrainman commented 5 years ago

Infinite scrolling is not currently supported but, it will be in the next release that will be out in the next few days.

wegascee commented 5 years ago

Thanks for the update. I'll be glad to test this new feature, when it is released.

wegascee commented 5 years ago

Any new info about this?

alexrainman commented 5 years ago

Soon.