diff --git a/Source/views/MacawView.swift b/Source/views/MacawView.swift index f3c9d716..94a43df3 100644 --- a/Source/views/MacawView.swift +++ b/Source/views/MacawView.swift @@ -296,7 +296,9 @@ open class MacawView: MView, MGestureRecognizerDelegate { var points = [TouchPoint]() for initialTouch in initialTouches { - let currentIndex = touches.index(of: initialTouch)! + guard let currentIndex = touches.index(of: initialTouch) else { + continue + } let currentTouch = touches[currentIndex] let location = CGPoint(x: currentTouch.x, y: currentTouch.y) let inverted = currentNode.place.invert()!