func setCardView() { cardView.backgroundColor = .white cardView.layer.cornerRadius = 10.0 cardView.layer.shadowColor = UIColor.gray.cgColor cardView.layer.shadowOffset = CGSize(width: 0.0, height: 0.0) cardView.layer.shadowRadius = 6.0 cardView.layer.shadowOpacity = 0.7 }