XCode 8.3.3 w/ Swift 3
import UIKit
class myview: UIView {
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
}
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
}
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
}
override func touchesCancelled(_ touches: Set<UITouch>?, with event: UIEvent?) {
// Don't forget to add "?" after Set<UITouch>
}
}
All four functions are throwing the error: "Cannot specialize non generic type "Set". The same code in beta 6 of Xcode 9 doesn't have the same issue.