Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- Represents a custom button including a touch object.
- */
- class TouchReporterButton: UIButton {
- // MARK: - Public Properties
- var touch: UITouch?
- // MARK: - Public Methods
- override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
- super.touchesBegan(touches, with: event)
- touch = touches.first
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement