Skip to content

Conversation

@E-know
Copy link
Collaborator

@E-know E-know commented Sep 8, 2022

What

Add Ticket at StampView

Description

@E-know E-know requested review from insub4067 and unnnyong September 8, 2022 13:21
Comment on lines 65 to 79
if isFlipped {
withAnimation(.linear(duration: durationAndDelay)) {
backDegree = 90
}
withAnimation(.linear(duration: durationAndDelay).delay(durationAndDelay)) {
frontDegree = 0
}
} else {
withAnimation(.linear(duration: durationAndDelay)) {
frontDegree = -90
}
withAnimation(.linear(duration: durationAndDelay).delay(durationAndDelay)) {
backDegree = 0
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if isFlipped {
withAnimation(.linear(duration: durationAndDelay)) {
backDegree = 90
}
withAnimation(.linear(duration: durationAndDelay).delay(durationAndDelay)) {
frontDegree = 0
}
} else {
withAnimation(.linear(duration: durationAndDelay)) {
frontDegree = -90
}
withAnimation(.linear(duration: durationAndDelay).delay(durationAndDelay)) {
backDegree = 0
}
}
withAnimation(.linear(duration: durationAndDelay)) {
frontDegree = isFlipped ? 90 : -90
}
withAnimation(.linear(duration: durationAndDelay).delay(durationAndDelay)) {
backDegree = 0
}

사망연산자를 씁시다 ~~~ ! 깔깔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if 문을 연속으로 작동해야하는 코드이기에 분리 유지 하겠습니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

코드에 주석으로도 남겨주시면 좋을 것 같아요 ..

Copy link
Collaborator

@song-cool song-cool left a comment

Choose a reason for hiding this comment

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

리뷰 완료했습니다. 뷰빌더관련 코드를 살펴보아서 좋았습니다!
고생하셨습니다 :)

몇몇가지 디자인 수정사항들을 발견하여 수정요청 드립니다!

} // body

//MARK: Flip Card Function
func flipCard () {
Copy link
Collaborator

Choose a reason for hiding this comment

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

private extension으로 옮기면 어때..요..???

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

수정했습니다.

Copy link
Collaborator

@unnnyong unnnyong left a comment

Choose a reason for hiding this comment

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

🍵 🍵 🍵 🍵 🍵 🍵 🍵

@song-cool song-cool merged commit 294b02d into Async-Swift:develop Sep 8, 2022
@song-cool song-cool added this to the v1.0 milestone Sep 8, 2022
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.

3 participants