Skip to content

Instantly share code, notes, and snippets.

@BeauNouvelle
Last active April 11, 2019 03:29
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 BeauNouvelle/b84fa96bef14123475f2beac8fb300b2 to your computer and use it in GitHub Desktop.
Save BeauNouvelle/b84fa96bef14123475f2beac8fb300b2 to your computer and use it in GitHub Desktop.
let button = UIButton()
button.addAction(for: .touchUpInside) { (button) in
// Run code
}
let slider = UISlider()
slider.addAction(for: .valueChanged) { (slider) in
// Run code
}
let segmentedControl = UISegmentedControl()
segmentedControl.addAction(for: .valueChanged) { (segmentedControl) in
// Run code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment