Skip to content

Yp main screen#13

Open
DenRayzer wants to merge 8 commits intodevfrom
YP-Main_Screen
Open

Yp main screen#13
DenRayzer wants to merge 8 commits intodevfrom
YP-Main_Screen

Conversation

@DenRayzer
Copy link
Copy Markdown
Owner

No description provided.

}
self.months = month
return
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@@ -24,7 +24,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// print(v)
// storyboardName = "Main"
// } else { storyboardName = "Login" }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Можно и комменты зачистить тогда)

}

func createDays() {
for _ in 0...30 {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Константы переиспользуются эти, значит нужно вынести их прям в именованные константы. Можно делать enum, можно и более простой вариант:

class YearCollectionViewCell: UICollectionViewCell {
    private let maxDaysCount = 31
    private let monthsCount = 12
    ...
}

scrollView.showsVerticalScrollIndicator = false
}

func setSize() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Лучше выравнивать и расставлять все по событиям обновления layout-а

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