-
-
Save milanpanchal/63ce03ee249dae0463efee73f00d89cb to your computer and use it in GitHub Desktop.
[iOS Blog] UIView Shadow Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private func setupShadowView() { | |
shadowView.layer.cornerRadius = 12 | |
shadowView.layer.shadowOffset = CGSize(width: 10, height: 10) | |
shadowView.layer.shadowOpacity = 0.5 | |
shadowView.layer.shadowRadius = 10 | |
shadowView.layer.shadowColor = UIColor.black.cgColor | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Article Link: https://medium.com/@milanpanchal24/how-to-match-shadow-and-blur-to-the-sketch-application-d4ed20dfa816