-
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
SummaryApi 리팩토링 및 긴글요약 UI 변경 #18
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0e7682f
Comment: 공지뷰 코멘트 수정
qlrmr111 0a49ee4
Feat: 팝업뷰 임시 구현
qlrmr111 ccc7b6f
Feat: 요약 선택 기능 임시 구현
qlrmr111 402d7f1
Design: 요약 선택 팝업 임시 디자인
qlrmr111 622a165
Feat: 임시 구현한 팝업 editView랑 slowPostBoxView에도 적용
qlrmr111 889cfac
Refactor: SummaryApi 리팩토링
qlrmr111 6518c0d
Rename: 테스트용으로 임시로 지은 PopUp을 SeletSummaryView로 이름 변경
qlrmr111 17f6ddc
Fix: PR리뷰 대응 및 버그 수정
qlrmr111 150baed
Fix: PR 리뷰 대응(UI 임시 수정)
qlrmr111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
해당 뷰 같은 코드가 반복되고 있는 것 같은데, SelectSummaryView를 별도의 파일로 분리하고, SelectSummaryViewModel도 하나로 관리하면 좋을 것 같습니다.
ViewModel의 경우 AddLetterView, EditLetterView, SlowPostboxView의 공통 상위 뷰에서 StateObject로 선언하고
AddLetterView, EditLetterView, SlowPostboxView 내부에는 ObservedObject로 선언한 다음 AddLetterView, EditLetterView, SlowPostboxView를 생성할 때 주입해주는 방식이 좋을 것 같습니다.
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.
흠 그럼 SelectSummaryView말고도 다른 반복되는 뷰들도 많은데 그렇게 하는데 더 낫겠죠?
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.
우선 운기님이 새로 만들어주신 SelectSummaryView만이라도 분리되면 좋을 것 같아요!
다른 뷰도 반복이 많기는 한데 뷰모델을 분리할 방법을 생각을 아직 못해봤습니다!!