title: Swipe to delete cell Height is decrease every time in xamarin ios
body: <p>I am new to iOS. I am creating TableView with swipe to delete the cell. But When I swipe every time the cell height is decrease. I am using iOS 10. The below code I have used.</p>
  
  <p><strong>Code :</strong></p>
  
  <pre><code>class AppointmentSourceClass : UITableViewSource
      {
          List&lt;AppointmentItem&gt; appointments;
  
          public AppointmentSourceClass(List&lt;AppointmentItem&gt; appointments)
          {
              this.appointments = appointments;
          }
  
          public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
          {
              ApointListCell cell = tableView.DequeueReusableCell(ApointListCell.Key) as ApointListCell ?? ApointListCell.Create();
              var item = appointments[indexPath.Row];
  
              cell.BindData(item);
  
              cell.Layer.MasksToBounds = false;
              cell.Layer.CornerRadius = 5.0f;
              cell.BackgroundColor = UIColor.White;
              cell.SelectionStyle = UITableViewCellSelectionStyle.None;
  
              return cell;
          }
  
          public override void CommitEditingStyle(UITableView tableView, UITableViewCellEditingStyle editingStyle, NSIndexPath indexPath)
          {
              switch (editingStyle)
              {
                  case UITableViewCellEditingStyle.Delete:
                      appointments.RemoveAt(indexPath.Row);
                      tableView.DeleteRows(new NSIndexPath[] { indexPath},UITableViewRowAnimation.Fade);
                      break;
                  case UITableViewCellEditingStyle.None:
                      break;
              }
          }
  
          public override bool CanEditRow(UITableView tableView, NSIndexPath indexPath)
          {
              return true;
          }
  
          public override string TitleForDeleteConfirmation(UITableView tableView, NSIndexPath indexPath)
          {
              return "Trash ( ";
          }
  
          public override nint RowsInSection(UITableView tableview, nint section)
          {
              return appointments.Count;
          }
      }
  }
  </code></pre>
  
  <p><strong>Output :</strong></p>
  
  <p>Before Swipe Image :</p>
  
  <p><a href="https://i.stack.imgur.com/AeK3J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AeK3J.png" alt="enter image description here"></a></p>
  
  <p>After Swipe Image :</p>
  
  <p><a href="https://i.stack.imgur.com/TPrFC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TPrFC.png" alt="enter image description here"></a></p>