The simple calendar API that allows a user to pick a date using iOS calendar UI view. This is very simple and small feature, but it can make your app much friendly to a user.

The following code snippet demonstrates how to show a date picker:

using SA.iOS.UIKit;
ISN_UICalendar.PickDate((DateTime date) => {
    Debug.Log("User picked date: " + date.ToLongDateString());

API Reference


namespace SA.iOS.UIKit 
public static class ISN_UICalendar  {
    /// <summary>
    /// Allows user to pick a date using the native iOS calendar view.
    /// </summary>
    /// <param name="callback">Callback with picked date once user is finished.</param>
    /// <param name="startFromYear">Optional. Year the calendar will start from.</param>
	public static void PickDate( Action<DateTime> callback, int startFromYear = 0);