I have used this in the past.
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?)
{
self.view.endEditing(true)
}
But now in Xcode 8 beta I get this error:
Declaration touchBegan(touches:withEvent)
has different argument names from any potential overrides.
Any thoughts?