         return hasHeader() ? section - 1 : section
     }
 
-    // MARK: - Private properties
-    
     private func setUpContentInsetForHeight(height: CGFloat) {
         let currentInset = collectionView.contentInset
         let bottomInset = settings.cancelView.showCancel ? settings.cancelView.height : currentInset.bottom

        
        collectionView.contentInset = UIEdgeInsets(top: topInset, left: currentInset.left, bottom: bottomInset, right: currentInset.right)
    }
    public var cancelView: UIView?
    private var isPresenting = false
    private var _dynamicSectionIndex: Int?
    private var _headerData: RawData<HeaderDataType>?
    private var _sections = [Section<ActionDataType, SectionHeaderDataType>]()

    }

    public func dismiss(completion: (() -> ())?) {
        disableActions = true
        presentingViewController?.dismissViewControllerAnimated(true) { [weak self] in
            self?.disableActions = false
            completion?()
        }
    }
    
    // MARK: - View controller behavior
