Added some code to test syntax highlighting.

This commit is contained in:
Robert McGovern 2020-04-17 21:17:24 +01:00
parent 104e081116
commit 525eee1742
1 changed files with 9 additions and 0 deletions

View File

@ -20,3 +20,12 @@ Easy to mock in data
Buggy. Buggy.
Filled 3 bugs so far. Filled 3 bugs so far.
{% highlight swift %}
override public func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
super.touchesBegan(touches, with: event)
currentTouchPosition = touches.first?.location(in: self)
NSObject.cancelPreviousPerformRequests(withTarget: self)
}
{% endhighlight %}