-
Notifications
You must be signed in to change notification settings - Fork 4
[Feat] Add StampView #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AsyncSwift/Views/StampView.swift
Outdated
| 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 | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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 | |
| } |
사망연산자를 씁시다 ~~~ ! 깔깔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if 문을 연속으로 작동해야하는 코드이기에 분리 유지 하겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드에 주석으로도 남겨주시면 좋을 것 같아요 ..
song-cool
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 완료했습니다. 뷰빌더관련 코드를 살펴보아서 좋았습니다!
고생하셨습니다 :)
몇몇가지 디자인 수정사항들을 발견하여 수정요청 드립니다!
AsyncSwift/Views/StampView.swift
Outdated
| } // body | ||
|
|
||
| //MARK: Flip Card Function | ||
| func flipCard () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private extension으로 옮기면 어때..요..???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했습니다.
unnnyong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍵 🍵 🍵 🍵 🍵 🍵 🍵
What
Add Ticket at StampView
Description