Skip to content

Instantly share code, notes, and snippets.

@marcin-adamczewski
Last active June 19, 2017 15:58
Show Gist options
  • Save marcin-adamczewski/4d5a1e0d168f0c5f9c8d8a42bffc7719 to your computer and use it in GitHub Desktop.
Save marcin-adamczewski/4d5a1e0d168f0c5f9c8d8a42bffc7719 to your computer and use it in GitHub Desktop.
void onFavoriteButtonClick() {
favoriteButton.setFavorite(!favoriteButton.isFavorite()) // toggle state
makeFavRequest(favoriteButton.isFavorite())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment