What is the correct way to use prepareForReuse?
<p>Need help with understanding how to use prepareForReuse() in UIKit.
The <a href="https://developer.apple.com/reference/uikit/uitableviewcell/1623223-prepareforreuse" rel="noreferrer">documentation</a> says </p>

<blockquote>
  <p>you should only reset attributes of the cell that are not related to
  content, for example, alpha, editing, and selection state</p>
</blockquote>

<p>but what about resetting individual property attributes such as isHidden?</p>

<p>Assuming my cell has 2 labels where should I reset:</p>

<ol>
<li>label.text </li>
<li>label.numberOfLines </li>
<li>label.isHidden</li>
</ol>

<p>My  tableView(_:cellForRowAt:) delegate has conditional logic to hide/show labels per cell.</p>