         }
     }
     
-    /** You can set up different color for picker and toolbar. */
+    /// You can set up different color for picker and toolbar.
     open var pickerBackgroundColor: UIColor? {
         didSet { picker.backgroundColor = pickerBackgroundColor }
     }
     
-    /** Initial picker's date */
+    /// Initial picker's date
     open var pickerDate: Date = Date() {
         didSet { picker.date = pickerDate }
     }

        }
    }
    
    /** Maximum date selectable */
    open var maximumDate: Date? {
        set {
            picker.maximumDate = newValue


@objc open class SMDatePicker: UIView {
    
    /// Picker's delegate that conforms to SMDatePickerDelegate protocol
    open weak var delegate: SMDatePickerDelegate?
    
    /// UIToolbar title
    open var title: String?
    open var titleFont: UIFont = UIFont.systemFont(ofSize: 13)
    open var titleColor: UIColor = UIColor.gray
    
    /// You can define your own toolbar height. By default it's 44 pixels.
    open var toolbarHeight: CGFloat = 44.0
    
    /// Specify different UIDatePicker mode. By default it's UIDatePickerMode.DateAndTime
    open var pickerMode: UIDatePickerMode = UIDatePickerMode.dateAndTime {
        didSet { picker.datePickerMode = pickerMode }
    }
    
    /// You can set up different color for picker and toolbar.
    open var toolbarBackgroundColor: UIColor? {
        didSet {
            toolbar.backgroundColor = toolbarBackgroundColor
