     
     open weak var delegate: FlatPickerViewDelegate? {
         didSet{
+            setupPickerSelectionView()
             collectionView?.reloadData()
         }
     }

        let centerHorizontal: NSLayoutConstraint = NSLayoutConstraint(item: highlightedView, attribute: NSLayoutAttribute.centerX, relatedBy: .equal, toItem: self, attribute: NSLayoutAttribute.centerX, multiplier: 1, constant: 0)
        let width: NSLayoutConstraint = NSLayoutConstraint(item: highlightedView, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .notAnAttribute, multiplier: 1, constant: itemSize)
        highlightedView.addConstraint(width)
        width.priority = 750
        let contraints = [top, bottom, centerHorizontal]
        contraints.forEach({
            $0.identifier = "horizontal"

        //Setting default direction
        direction = .vertical
        setupPickerSelectionView()

    }
    
    
