I have a rather sprawling program, mostly working well. But occasionally I the following code encounters an issue, and I can’t figure out why.   let targetIndex = curLevel?.targets.firstIndex(where: { $0.uuid == uuid! }) print( targetIndex! ) dump( curLevel?.targets[targetIndex!] )   Here’s what gets displayed…

let longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(handleLongPress(gesture:)))                    calendarView.addGestureRecognizer(longPressGesture)                          }            @objc func handleLongPress(gesture: UILongPressGestureRecognizer) {                 guard gesture.state == .began else {return}                 let position = gesture.location(in: collectionView)                 if let indexPath = collectionView.indexPathForItem(at: position) {                     guard let modalCalVC…