Skip to content

Sprint_05#723

Open
slenbder wants to merge 7 commits into
Yandex-Practicum:project_sprint_3_startfrom
slenbder:sprint_05
Open

Sprint_05#723
slenbder wants to merge 7 commits into
Yandex-Practicum:project_sprint_3_startfrom
slenbder:sprint_05

Conversation

@slenbder

Copy link
Copy Markdown

No description provided.

static var ypBackground: UIColor { UIColor(named: "YP Background") ?? UIColor.darkGray }
static var ypGray: UIColor { UIColor(named: "YP Gray") ?? UIColor.gray }
static var ypWhite: UIColor { UIColor(named: "YP White") ?? UIColor.white}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сместился отступ, давай поправим

// Created by Кирилл Марьясов on 19.02.2024.
//

import Foundation

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пустой файл, давай удалим

let image: UIImage
let question: String
let questionNumber: String
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Также сместился отступ


import UIKit

class AlertPresenter {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай добавим модификатор final для этого класса. Он необходим для оптимизации и скорости проекта, также не позволит наследоваться от данного класса.


final class MovieQuizViewController: UIViewController {
final class MovieQuizViewController: UIViewController, QuestionFactoryDelegate {
func didReceiveNextQuestion(question: QuizQuestion?) {

@So1ovyov So1ovyov Feb 21, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай структурируем файлы в проекте так, чтобы понятнее было где что располагается. Вот отличный пример


import Foundation

class QuestionFactory: QuestionFactoryProtocol {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проверь во всех классах наличие модификатора final

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants