Link Search Menu Expand Document

DatePicker

public class DatePicker: Control 

Inheritance

Control

Initializers

init(frame:)

public init(frame: Rect) 

Properties

date

The date displayed by the date picker.

public var date: Date 

datePickerStyle

public private(set) var datePickerStyle: DatePickerStyle = .inline

preferredDatePickerStyle

public private(set) var preferredDatePickerStyle: DatePickerStyle = .automatic 

Methods

setDate(_:animated:)

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

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