 
 // MARK: - Optional delegate functions
 
-extension TTADataPickerViewDelegate {
+public extension TTADataPickerViewDelegate {
     
     func dataPickerView(_ pickerView: TTADataPickerView, didSelectTitles titles: [String]) {
         


/// The component tpye of the TTADataPickerView

enum TTADataPickerViewType {
    /// pickerView default
    case text
    /// datePicker default, date

}

/// TTADataPickerView
open class TTADataPickerView: UIView {
    
    // MARK: - Public properties
    
    public weak var delegate: TTADataPickerViewDelegate?
    
    /// Picker view component type, for MORE TTADataPickerViewType
    public var type: TTADataPickerViewType = .text {
        didSet {
            switch type {
            case .text:
