Last active
November 5, 2017 23:41
-
-
Save llinardos/79bd4ff54faae2b70f15b8021b04c256 to your computer and use it in GitHub Desktop.
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
class Tap { | |
private static var instances: [Tap] = [] | |
// ... | |
static func on(view: UIView, fires action: @escaping () -> Void) { | |
let tap = Tap(view: view, action: action) | |
Tap.instances.append(tap) | |
} | |
private init(view: UIView, action: @escaping () -> Void) { /* ... */ } | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment