When changing the view mode from Day to MultiDay or opposite, and having an AppointmentTemplateSelector, exception is thrown on iOS.
workaround:
Return the default template when platform is iOS.
if(Device.RuntimePlatform == Device.iOS)
{
return default;
}