File: DatePicker\DatePicker.iOS.cs
Web Access
Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls)
#nullable disable
using Microsoft.Maui.Controls.Platform;
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;
 
namespace Microsoft.Maui.Controls
{
	public partial class DatePicker
	{
		public static void MapUpdateMode(IDatePickerHandler handler, DatePicker datePicker)
		{
			if (handler is DatePickerHandler dph)
				dph.UpdateImmediately = datePicker.OnThisPlatform().UpdateMode() == UpdateMode.Immediately;
		}
 
		public static void MapUpdateMode(DatePickerHandler handler, DatePicker datePicker) =>
			MapUpdateMode((IDatePickerHandler)handler, datePicker);
	}
}