Hi,
I have a Xamarin.Forms app with Syncfusion.SFCalendar package (version 16.1.0.37).
SFCalendar was working pretty well until I've updated iOS to the latest version iOS 12.
With Visual Studio for Mac debugging my app I got the error "Specified argument was out of the range of valid values. Parameter name: index" and following is the stack trace :
at Foundation.NSArray.GetItem[T] (System.nuint index) [0x00013] in <6a026a6503ca4935b5bb3ed241d053fe>:0
at Syncfusion.SfCalendar.iOS.SFCalendar.set_VisibleDates (Foundation.NSMutableArray value) [0x0004c] in <322b8396bbb4422aa29d08ee3931f72a>:0
at Syncfusion.SfCalendar.iOS.SFCalendar.UpdateVisibleDates (Foundation.NSDate date) [0x00259] in <322b8396bbb4422aa29d08ee3931f72a>:0
at Syncfusion.SfCalendar.iOS.SFCalendar.InternalMoveToDate (Foundation.NSDate dateNeedToBeMoved) [0x000dc] in <322b8396bbb4422aa29d08ee3931f72a>:0
at Syncfusion.SfCalendar.iOS.SFCalendar.MoveToMonthView () [0x0008b] in <322b8396bbb4422aa29d08ee3931f72a>:0
at Syncfusion.SfCalendar.iOS.SFCalendar.UpdateCalendarType () [0x0008d] in <322b8396bbb4422aa29d08ee3931f72a>:0
at Syncfusion.SfCalendar.iOS.SFCalendar..ctor () [0x0023f] in <322b8396bbb4422aa29d08ee3931f72a>:0
at Syncfusion.SfCalendar.XForms.iOS.SfCalendarRenderer.OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1[TElement] e) [0x00065] in <40ef003074fc41fab98bdea61365bd4c>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x00118] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.iOS.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00000] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0002a] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Load () [0x0001e] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x00086] in <bc5a3d4303744676b3b36f4254bb697d>:0
at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper(intptr,intptr)
at UIKit.UIViewController.get_View () [0x0002a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/UIKit/UIViewController.g.cs:2983
at Xamarin.Forms.Platform.iOS.PageRenderer.get_NativeView () [0x00008] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.PageRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x0004f] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00014] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page) [0x00008] in <bc5a3d4303744676b3b36f4254bb697d>:0
at Xamarin.Forms.Platform.iOS.NavigationRenderer+<OnPushAsync>d__45.MoveNext () [0x00016] in <bc5a3d4303744676b3b36f4254bb697d>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.0.0.15/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:357
at Xamarin.Forms.Platform.iOS.NavigationRenderer+<<ViewDidLoad>b__40_0>d.MoveNext () [0x00067] in <bc5a3d4303744676b3b36f4254bb697d>:0
--- End of stack trace from previous location where exception was thrown ---
Can you help please, or provide some samples that I could use with SFCalendar and iOS 12 in a Xamarin.Forms application ?
With Android the same app works correctly.
Thanks,
Enrico.