let button = FRButton()
button.touchDownAction = {(button: FRButton) in
print("button touchDownAction")
}
button.touchUpAction = {(button: FRButton) in
print("button touchUpAction")
}
button.touchExitAction = {(button: FRButton) in
print("button touchExitAction")
}
Last active
August 2, 2017 14:02
-
-
Save sergii-frost/157bc0ad78b36baae31b2f6d870986e5 to your computer and use it in GitHub Desktop.
Swift: Button with closures as actions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment