Contents

setDate(_:animated:)

Sets the date to display in the date picker, with an option to animate the setting.

Declaration

func setDate(_ date: Date, animated: Bool)

Parameters

  • date:

    An NSDate object representing the new date to display in the date picker.

  • animated:

    True to animate the setting of the new date, otherwise False. The animation rotates the wheels until the new date and time is shown under the highlight rectangle.

See Also

Managing the date and calendar