Skip to content

Conversation

@lsj8706
Copy link
Collaborator

@lsj8706 lsj8706 commented Jan 2, 2023

🌱 작업한 내용

  • CountDownVC 구현

🌱 PR Point

  • 디자이너분들이 원하신 애니메이션이 이게 맞는지는 모르겠는데 우선 카운트 다운에 애니메이션을 추가했습니다.

📸 스크린샷

구현 내용 스크린샷
카운트 다운 Simulator Screen Recording - iPhone 14 - 2023-01-03 at 01 39 26

📮 관련 이슈

@lsj8706 lsj8706 added Feat 새로운 기능 구현 세진☃️ labels Jan 2, 2023
@lsj8706 lsj8706 self-assigned this Jan 2, 2023
Copy link
Contributor

@dlwogus0128 dlwogus0128 left a comment

Choose a reason for hiding this comment

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

왕~~~~~ 멋져요 🥹

// MARK: - Methods

extension CountDownVC {
private func animateTimeLabel() {
Copy link
Contributor

Choose a reason for hiding this comment

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

옹 애니메이션.. 신기하네욥...


timeLabel.snp.makeConstraints { make in
make.centerX.equalTo(view.safeAreaLayoutGuide)
make.centerY.equalTo(view.safeAreaLayoutGuide).multipliedBy(0.9)
Copy link
Contributor

Choose a reason for hiding this comment

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

높이 계산할 때 multipliedBy를 쓴 이유가 몬가욥?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

중앙 정렬을 하고 중앙보다 살짝 위 또는 아래에 위치시키기 위해 multipliedBy를 사용했어요~!
이렇게 하면 크기가 다른 기기에서도 동일한 위치(중앙에서 떨어진 비율)을 유지할 수 있어요!

@lsj8706 lsj8706 merged commit f34b2df into Runnect:develop Jan 3, 2023
@lsj8706 lsj8706 deleted the feat/#18-러닝시작전-카운트다운-뷰-UI branch January 3, 2023 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feat 새로운 기능 구현 세진☃️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 러닝 시작 전 카운트다운 뷰 UI 구현

2 participants