id='making-the-cells-close-when-needed-small-optional-small' class='heading'>Making the cells close when needed <small>(optional)</small></h3>

<p>Usually, you would want cells to automatically close whenever you scroll the tableview, or when another cell is swiped sideways. To achieve this, use the provided tableview extension function <code>closeAllCells(exceptThisOne:)</code>. Here is an example (from the example project):</p>
<pre class="highlight swift"><code><span class="c1">// Close all cells when th