     open func invalidateVisibility(_ completion: ((Bool) -> Void)? = nil) {
         self.performBatchUpdates({
             self.collectionViewLayout.invalidateLayout(with: BrickLayoutInvalidationContext(type: .updateVisibility))
-            }, completion: completion)
+        }, completion: completion)
     }
 
     // MARK: - Private methods

        weak var weakLayout = self.layout
        self.performBatchUpdates({
            weakLayout?.updateHeight(indexPath, newHeight: newHeight)
            }, completion: completion)
    }
}


                self.reloadSections(IndexSet(integersIn: 0..<self.numberOfSections))
            }
            self.collectionViewLayout.invalidateLayout(with: BrickLayoutInvalidationContext(type: .invalidate))
        }, completion: completion)
    }

    /// Invalidate the visibility
