| | |
| | | answterCount += 1 |
| | | rootViewModel.correctNum += 1 |
| | | viewModel.answerType.accept(.success) |
| | | label_hint.text = "" |
| | | |
| | | let copyView = tempSubV.copyView() |
| | | copyView.listenType = .lesson5 |
| | | copyView.jq_cornerRadius = 0 |
| | | copyView.playUrl = selectAnswer.correct |
| | | let newRect = tempSubV.convert(tempSubV.bounds, to: self.view) |
| | | copyView.frame = CGRect(origin: newRect.origin, size: CGSize(width: 159, height: 52)) |
| | |
| | | if let cell = self.collectionView.dequeueReusableCell(withReuseIdentifier: "_ListenFight_lesson_1_CCell", for: indexPath) as? ListenFight_lesson_1_CCell{ |
| | | var newRect1 = cell.convert(cell.bounds, to: self.collectionView) |
| | | newRect1.origin.x += (collectionView.frame.origin.x + 5) |
| | | newRect1.origin.y += 94 + 25 |
| | | newRect1.origin.y += 94 + 24 |
| | | |
| | | UIView.animateKeyframes(withDuration: 0.4, delay: 0,options: .calculationModeLinear) { |
| | | copyView.frame = CGRect(origin: newRect1.origin, size: CGSize(width: flowLayout.itemSize.width - 10 , height: 40)) |