0

Getting an error saying NSSet does not have a member named first for this if statement

if let touch = touches.first as? UITouch {
}
ssapkota
  • 3,262
  • 19
  • 30

1 Answers1

0

Your code is wrong, it should be:

if let touches = touches.first as UITouch! { 
}
ssapkota
  • 3,262
  • 19
  • 30
jayReb
  • 1
  • 4