Trying to make a shadow on top of the tableView, here’s the code:
tableView.layer.masksToBounds = false tableView.layer.shadowColor = UIColor.black.cgColor tableView.layer.shadowOffset = CGSize(width: -5.0, height: -5.0) tableView.layer.shadowOpacity = 1.0 I also tried to set CGSize.zero , but the shadow is still not shown.
This is what I want:
