Created
January 31, 2018 14:15
-
-
Save tarangpatel/345df45c99d1cc66f27647095f6bc98d to your computer and use it in GitHub Desktop.
[Custom UIButton with closure] #customUI #UIButton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let button = ActionButton(frame: buttonRect) | |
button.touchDown = { button in | |
print("Touch Down") | |
} | |
button.touchExit = { button in | |
print("Touch Exit") | |
} | |
button.touchUp = { button in | |
print("Touch Up") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment