-
Notifications
You must be signed in to change notification settings - Fork 1
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
Network [#40] 홈뷰 완성 #42
Conversation
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.
고생하셨어요 홈뷰까지!! 👍👍
ProgressView(value: Double(totalActivity.totalTime), total: Double(totalActivity.totalGoalTime)) | ||
.foregroundStyle(.gray5) | ||
.padding(EdgeInsets(top: 0, | ||
leading: 20, | ||
bottom: 0, | ||
trailing: 20)) | ||
.tint(.whiteText) |
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.
❓ progressView는 withAnimation으로는 불가능한가 싶네요!!
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.
제가 알기로는 withAnimation이 값 변화가 있을 때 애니메이션이 되는데, 이 뷰가 뜨는 시점에는 이미 값이 0에서 특정 값으로 변하는 시점이라 ,, 안되더라구요 😭
func configHomeViewVisual() -> [String] { | ||
var lottieTitle = "Main-\(usageGrade)-final.json" | ||
|
||
var titleString = "" | ||
switch usageGrade{ | ||
case "A": | ||
lottieTitle = "Main-A-final.json" | ||
titleString = StringLiteral.Home.usageStatusA | ||
case "B": | ||
lottieTitle = "Main-B-final.json" | ||
titleString = StringLiteral.Home.usageStatusB | ||
case "C": | ||
lottieTitle = "Main-C-final.json" | ||
titleString = StringLiteral.Home.usageStatusC | ||
case "D": | ||
lottieTitle = "Main-D-final.json" | ||
titleString = StringLiteral.Home.usageStatusD | ||
case "E": | ||
lottieTitle = "Main-E-final.json" | ||
titleString = StringLiteral.Home.usageStatusE | ||
case "F": | ||
lottieTitle = "Main-F-final.json" | ||
titleString = StringLiteral.Home.usageStatusF | ||
default: | ||
titleString = "" | ||
} | ||
return [lottieTitle, titleString] | ||
} |
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.
👍 오오 좋습니다!! 기대된다..
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.
👾 작업 내용
홈 이용시간 통계뷰를 완성했습니다. (개발 쾌감 미쳤다.. 😭 )
🚀 PR Point
전체적인 부분에 앱 사용시간과 관련 값이 있어야 구현 가능하여 모든 뷰를 DeviceActicityReport 타겟으로 이동하였습니다
📸 스크린샷
✅ CheckList
🔗 Issue
Resolved #40