File: iOS\CollectionView\EmptySource.cs
Web Access
Project: src\src\Compatibility\Core\src\Compatibility.csproj (Microsoft.Maui.Controls.Compatibility)
using System;
using Foundation;
 
namespace Microsoft.Maui.Controls.Compatibility.Platform.iOS
{
	internal class EmptySource : ILoopItemsViewSource
	{
		public int GroupCount => 0;
 
		public int ItemCount => 0;
 
		public bool Loop { get; set; }
 
		public int LoopCount => 0;
 
		public object this[NSIndexPath indexPath] => throw new IndexOutOfRangeException("IItemsViewSource is empty");
 
		public int ItemCountInGroup(nint group) => 0;
 
		public object Group(NSIndexPath indexPath)
		{
			throw new IndexOutOfRangeException("IItemsViewSource is empty");
		}
 
		public NSIndexPath GetIndexForItem(object item)
		{
			throw new IndexOutOfRangeException("IItemsViewSource is empty");
		}
 
		public void Dispose()
		{
		}
	}
}