Skip to content

Instantly share code, notes, and snippets.

@Broich
Last active May 27, 2016 10:00
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 Broich/702d3d04d30de420e7c09fef9e664975 to your computer and use it in GitHub Desktop.
Save Broich/702d3d04d30de420e7c09fef9e664975 to your computer and use it in GitHub Desktop.
MyViewController: UIViewController {
let refreshControl: UIRefreshControl = {
$0.tintColor = Theme.currentTheme().textColor
$0.addTarget(self, action: #selector(refresh(_:)), forControlEvents: .ValueChanged)
return $0
}(UIRefreshControl())
override func viewDidLoad() {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment