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 }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter