-
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] 수업 완료 시 토스트 메시지 추가 #84
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.
고생하셨습니다! 멘션 남겨놓은 부분 확인 부탁드려요!
|
||
/// 수업 완료 후 토스트 메시지 | ||
case .sessionToastMessage: | ||
state.sessionTMessage = 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.
앗 해당 부분은 NotificationCenter.default.post(toast:) 로 보내시기만 하면 앱 전역에 깔린 오버레이에 토스트가 표시됩니다!
화면에 안붙이셔도 표시할 수 있어요!
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.
아하 넵넵~!
@@ -117,7 +122,7 @@ public struct TrainerHomeView: View { | |||
if let record = store.tappedsessionInfo, !record.lessons.isEmpty { | |||
ForEach(record.lessons, id: \.id) { record in | |||
SessionCellView(session: record) { | |||
send(.tapSessionCompleted(id: record.ptLessonId)) | |||
send(.tapSessionCompleted(id: Int(record.ptLessonId)!)) |
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.
엇 강제 언래핑보다는 ?? 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.
넹
📌 What is the PR?
🪄 Changes
🌐 Common Changes
🙆🏻 To Reviewers
💭 Related Issues