0

I have added shadow in viewDidLoad, but it does not appeared. UINavigationController clip to bound is set to false, but still shadow is clipped. Do you know why, how to render shadow?

tableview.layer.shadowOffset = CGSize(width: 10, height: -10)
tableview.layer.shadowRadius = 10
tableview.layer.shadowColor = UIColor.yellow.cgColor
tableview.layer.shadowOpacity = 0.5
tableview.layer.masksToBounds = false
János
  • 32,867
  • 38
  • 193
  • 353

0 Answers0