title: Prevent UIStackView from compressing UITableView
body: <p>I am adding a UITableView into vertical UIStackView. That vertical UIStackView is within a UIScrollView. </p>
  
  <p>However the table is not displaying unless I force an explicit Height constraint on it which I obviously don't want to do.</p>
  
  <p>According to this SO question and answer <a href="https://stackoverflow.com/questions/39481153/uitableview-not-shown-inside-uistackview">UITableView not shown inside UIStackView</a> this is because "stackview tries to compress content as much as possible"</p>
  
  <p>If I add a UILabel to the StackView it is displayed fine. There is something specific about the UITableView that means it is not. I am using Xamarin and creating the UITableView in code</p>
  
  <pre><code>this.recentlyOpenedPatientsTable = new UITableView()
  {
      RowHeight = UITableView.AutomaticDimension,
      EstimatedRowHeight = 44.0f,
      AllowsMultipleSelectionDuringEditing = false,
      TranslatesAutoresizingMaskIntoConstraints = false,
      Editing = false,
      BackgroundColor = UIColor.Clear,
      TableFooterView = new UIView(),
      ScrollEnabled = false,
  };   
  </code></pre>
  
  <p>The UIScrollView is pinned to the Top, Bottom, Left and Right of the View and works fine. It takes the Height I expect.</p>
  
  <p>I have tried both the suggestions in this SO question and neither have worked. I find it odd that I cannot find others having this issue.</p>
  
  <p>Any other suggestions?</p>