     /// Calculate item width along with scale padding
     fileprivate var cellWidth: CGFloat {
         if showAllItem {
-            return   pickerCollectionView.bounds.width/CGFloat(itemCount)
+            return pickerCollectionView.bounds.width/CGFloat(itemCount)
         }
         return max(pickerCollectionView.bounds.width - (titlePadding*2), 0)
     }

    
    /// Set title padding scale to view left and right tiltle / view
    var titlePaddingScale: CGFloat = 0.8 {
        didSet {
            reloadData()
        }
    }
    
    /// Show all item in picker view, once set true titlePadding will not work here
    var showAllItem = false {
        didSet {
            reloadData()
        }
    }
    
    /// Set title text color for MBPicker View
    var titleAttributes: MBPickerViewTitleAttribute! = MBPickerViewTitleAttribute.defaultAttribute() {
        didSet {
            reloadData()
        }
    }
    
    /// Select a specific item in MBPickerView

    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
        delegate?.pickerView?(self, willSelectItem: indexPath.item)
        collectionView.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: true)
        var reloadIndexes: [IndexPath] = []
        if !showAllItem {
            reloadIndexes = collectionView.visibleIndexPath
        } else if indexPath != lastSelectedIndex {
              reloadIndexes = [lastSelectedIndex, indexPath]
        } else {
            reloadIndexes = [indexPath]
        }
        lastSelectedIndex = indexPath
        pickerCollectionView.reloadItems(at:reloadIndexes)
        delegate?.pickerView?(self, didSelectItem: indexPath.item)
    }
    
