     
     // MARK: Showing and hiding picker
     
-    /**
-    Shows picker in view with animation if it's required.
-    
-    - parameter view: is a UIView where we want to show our picker
-    - parameter animated: will show with animation if it's true
-    
-    */
+    /// Shows picker in view with animation if it's required.
+    ///
+    /// - Parameter view: is a UIView where we want to show our picker
+    /// - Parameter animated: will show with animation if it's true
     open func showPickerInView(_ view: UIView, animated: Bool) {
         toolbar.items = toolbarItems()
         

        }
    }
    
    /** Array of UIBarButtonItem's that will be placed on left side of UIToolbar. By default it has only 'Cancel' bytton. */
    open var leftButtons: [UIBarButtonItem] = []
    
    /** Array of UIBarButtonItem's that will be placed on right side of UIToolbar. By default it has only 'Done' bytton. */
    open var rightButtons: [UIBarButtonItem] = []
    
    // Privates


@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
