func show()

in QuizDemo/QuizDemo/Controllers/PlayerViewController.swift [73:86]


    func show(_ question: Question) {
        questionView.layer.removeAllAnimations()
        questionStackView.subviews.forEach { $0.layer.removeAllAnimations(); $0.removeFromSuperview() }
        questionView.alpha = 1
        questionTitle.text = question.question
        questionTitle.sizeToFit()
        question.answers.forEach { (answer) in
            let answerButton = AnswerButton(answer)
            answerButton.addTarget(self, action: #selector(answerTapped(_:)), for: .touchUpInside)
            questionStackView.addArrangedSubview(answerButton)
        }
        currentQuestion = question
        questionView.isHidden = false
    }