title: Hiding the subview in UIStackview in ios
body: <p>In order to hide a subview in <code>UIStackView</code> is it better to set the <code>isHidden</code> to true or to use <code>removeArrangedSubview</code> and remove the subview from the parent <code>Stackview</code> instead ?</p>
  
  <p>I am using a Stackview to arrange my UIElements in the tableView cell.
  I currently have a parent StackView and a childStackview arranged inside.  The child view needs to be shown or hidden based on a condition. I am setting the <code>isHidden</code> property of the child view to true when the condition turns true.</p>
  
  <p>When I scroll and new cells come become visible
   I get the following messages in the console. The app does not crash.</p>
  
  <blockquote>
    <p>NSLayoutConstraint:0x600000093470 'UISV-canvas-connection' UIStackView:0x7fd4527201b0.top == UILabel:0x7fd452720370'Day Off - Rest and Sleep ...'.top   (active)</p>
  </blockquote>
  
  <p>Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
  The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <code>&lt;UIKit/UIView.h&gt;</code> may also be helpful.
   [LayoutConstraints] Unable to simultaneously satisfy constraints.
      Probably at least one of the constraints in the following list is one you don't want.<br>
      Try this:  </p>
  
  <ol>
  <li>look at each constraint and try to figure out which you don't expect; </li>
  <li>find the code that added the unwanted constraint or constraints and fix it. 
  (
  "",
  "",
  "",
  "",
  "",
  "",
  ""
  )</li>
  </ol>
  
  <p>Will attempt to recover by breaking constraint </p>