title: Grouped table view with shadow
body: <p>I want to achieve a grouped tableView along with shadow same as in the below image.</p>
  <img src="https://i.stack.imgur.com/KTKiM.png" width="250" alt="Grouped tableView cells"/>
  <p>To archive rounded corners along with shadow, I have simply added a separate UIView behind my main view and pinned it with main view from all side, like this</p>
  <img src="https://i.stack.imgur.com/TeB3m.png" width="350" />
  <p>Applying shadow on shadow view and depending on cell's index rounded corners via masking on main view. And this way successfully achieving masked rounded corners with shadow.</p>
  <p>But the shadows of cells are overlapping:</p>
  <img src="https://i.stack.imgur.com/j3YHz.png" width="250" />
  <p>In order to resolve this, the top cell should have shadow on the top, right and left, the middle cell only right and left side and the bottom cell should have shadow on right, left and bottom side.</p>