Skip to content

Instantly share code, notes, and snippets.

@shahankit
Created September 11, 2015 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shahankit/26139cb65f55c150b844 to your computer and use it in GitHub Desktop.
Save shahankit/26139cb65f55c150b844 to your computer and use it in GitHub Desktop.
ios: Adding shadow to view
recCardView.layer.shadowColor = UIColor.blackColor().CGColor
recCardView.layer.shadowOffset = CGSizeMake(0, 1)
recCardView.layer.shadowOpacity = 0.3
recCardView.layer.shadowRadius = 1.0
recCardView.layer.shadowPath = UIBezierPath(roundedRect: recCardView.bounds, cornerRadius: 2.0).CGPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment