[![enter image description here](https://i.stack.imgur.com/E1Bqe.png)](https://i.stack.imgur.com/E1Bqe.png)

I have to calculate dynamic height of cell depends on two label, left label and right label. left label can have empty string . I want to give a specific fixed height if left label is empty else it will take left label height. **Cant able to give fixed height when label is empty**
This code is not working

```
self.tableView.estimatedRowHeight = 50

```

[![enter image description here](https://i.stack.imgur.com/AnfFZ.png)](https://i.stack.imgur.com/AnfFZ.png)