yourView.layer.shadowColor = UIColor.black.cgColor yourView.layer.shadowOpacity = 1 yourView.layer.shadowOffset = CGSize.zero yourView.layer.shadowRadius = 10