Skip to content

Instantly share code, notes, and snippets.

@hashaam
Last active February 5, 2022 20:45
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 hashaam/008b755f49d38b37ff42e198147404f5 to your computer and use it in GitHub Desktop.
Save hashaam/008b755f49d38b37ff42e198147404f5 to your computer and use it in GitHub Desktop.
private extension RequestCameraAuthorizationView {
// ...
func setupActionButtonShadow() {
actionButton.layer.shadowColor = UIColor.black.cgColor
actionButton.layer.shadowRadius = 10
actionButton.layer.shadowOpacity = 0.3
actionButton.layer.masksToBounds = false
actionButton.layer.shadowOffset = CGSize(width: 5, height: 10)
actionButton.layer.cornerRadius = 4
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment