     open var layoutDelegate: ColorPickerViewDelegateFlowLayout?
     /// The object that acts as the delegate for the color picker
     open var delegate: ColorPickerViewDelegate?
+    /// The index of the selected color in the color picker 
+    open var indexOfSelectedColor: Int? {
+        return indexSelectedColor
+    }
     /// The index of the preselected color in the color picker
     open var preselectedIndex: Int? = nil {
         didSet {

    open var selectionStyle: ColorPickerViewSelectStyle = .check
    
    // MARK: - Private properties
    fileprivate var indexOfSelectedColor: Int?
    fileprivate lazy var collectionView: UICollectionView = {
        
        let layout = UICollectionViewFlowLayout()

        
        guard selectionStyle == .check else { return }
        
        guard indexPath.item == indexSelectedColor else {
            colorPickerCell.checkbox.setCheckState(.unchecked, animated: false)
            return
        }
