[Feat] #205 - ShareExtension UI 변경 및 MVVM 으로 리펙토링 #213
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.
✨ 해결한 이슈
🛠️ 작업내용
🖥️ 주요 코드 설명
ShareViewModel
다음과 같이 MVVM input-output 구조로 변경하여 로직을 분리했습니다.
단순히 데이터를 갖고 있는 프로퍼티는 input-output 구조에 포함 시키지 않고 bindUrl, readAppURL 메서드를 통해 접근하거나 값을 바꾸도록 하였습니다.
저번 회의때 나온 얘기 처럼 API 호출부분을 에서 바로 Publisher 를 반환할 수 있게 변경했고 Error 처리도 가능하게 추가해두었습니다.
✅ Checklist