Skip to content

Instantly share code, notes, and snippets.

@krummler
Last active April 9, 2020 10:12
Show Gist options
  • Save krummler/1c97bb1da2bd0010a88981464320deb5 to your computer and use it in GitHub Desktop.
Save krummler/1c97bb1da2bd0010a88981464320deb5 to your computer and use it in GitHub Desktop.
Article - Simple button styling
button.backgroundColor = UIColor(named: "buttonBackground")
button.layer.cornerRadius = 8
button.layer.shadowColor = UIColor(named: "buttonShadow")?.cgColor
button.layer.shadowOpacity = 0.8
button.layer.shadowOffset = CGSize(width: 1, height: 1)
button.layer.borderWidth = 2
button.layer.borderColor = UIColor(named: "buttonBorder")?.cgColor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment