| | |
| | | case .success: |
| | | timer?.fireDate = .distantFuture |
| | | viewModel.answerType.accept(.success) |
| | | collectionView.reloadData() |
| | | if let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "_ListenFight_Game_CCell", for: viewModel.selectIndex.value!) as? ListenFight_Game_CCell{ |
| | | // collectionView.reloadData() |
| | | |
| | | if let cell = collectionView.cellForItem(at: viewModel.selectIndex.value!) as? ListenFight_Game_CCell{ |
| | | let newRect = cell.contentView.convert(cell.bounds, from: self.collectionView) |
| | | let x = abs(newRect.origin.x) + self.collectionView.contentInset.left + 5 |
| | | let y = abs(newRect.origin.y) + 99 + 5 |