-
Notifications
You must be signed in to change notification settings - Fork 0
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
[TNT-210] 트레이너 마이페이지, 홈 캘린더 화면 작성 #54
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.
고생 많으셨습니다!
트랜지션 막는 아이디어 가지고 계속 고민했었는데, 깔끔하게 해결하셨네요 굳ㄱㄷㄱ둑ㄷ
저 플러스 아이콘의 경우 저는 기존의 플러스 아이콘 template으로 따서 틴트 컬러만 바꿔줬어요!
Image(.icnPlus)
.renderingMode(.template)
.resizable()
.tint(Color.common0)
...
case .getVerifyInvitationCode: | ||
return ["Content-Type": "application/json"] | ||
case .getFirstInvitationCode: | ||
return nil | ||
case .getDateLessionList: | ||
return ["Content-Type": "application/json"] | ||
case .getReissuanceInvitationCode: | ||
return ["Content-Type": "application/json"] |
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.
참고용으로 올려드립니다! 아래와 같이 작성하면 조금? 더 편합니다 갠취인것 같아요.
case .getVerifyInvitationCode, .getDateLessionList, .getReissuanceInvitationCode:
return ["Content-Type": "application/json"]
public struct SessonEntity: Equatable, Encodable { | ||
public let id = UUID().uuidString | ||
public let ptLessonId: String |
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.
여기에서 id는 어떤 역할을 위한걸까요?
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.
Foreach에서 id값을 활용하기 위해서입니다!
@ViewBuilder
private func RecordList() -> some View {
VStack {
if let record = store.tappedsessionInfo {
ForEach(record.lessons, id: \.id) { record in
SessionCellView(session: record) {
send(.tapSessionCompleted(id: record.ptLessonId))
}
}
} else {
RecordEmptyView()
}
}
.padding(.horizontal, 20)
}
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.
아하 그런거라면 API에서 ResponseDTO -> SessionEntity로 Mapping할 때
DTO에서 받아오는 id를 entity로 가져올 수 있게
init에 추가해주시면 좋을 것 같아요! 기본값은 UUID 넣어주는 방향으로요.
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.
섹션마다 설명 주석이 있으니 훨씬 좋은데요? 👍👍
state.view_isPopUpPresented = false | ||
state.view_popUp = .logoutCompleted | ||
state.view_isPopUpPresented = true | ||
|
||
case .logoutCompleted: | ||
state.view_isPopUpPresented = false | ||
|
||
case .withdraw: | ||
state.view_isPopUpPresented = false | ||
state.view_popUp = .withdrawCompleted | ||
state.view_isPopUpPresented = true |
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 is the PR?
🪄 Changes
📸 Screenshot
🙆🏻 To Reviewers
💭 Related Issues