Skip to content

[#440] 맥으로 Todo를 작성 혹은 수정 시 시트 대신 새 창이 뜨도록 수정한다#505

Merged
opficdev merged 11 commits into
developfrom
feat/#440-todo-detail
Jun 1, 2026
Merged

[#440] 맥으로 Todo를 작성 혹은 수정 시 시트 대신 새 창이 뜨도록 수정한다#505
opficdev merged 11 commits into
developfrom
feat/#440-todo-detail

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

Mac에서 Todo 작성 및 수정 시 기존 시트/풀스크린 커버가 아닌 별도 윈도우 기반 편집 경험 제공

📝 작업 내용

📌 요약

  • iOS App on Mac 실행 환경 판별 값 추가
  • Mac 환경에서 Todo 작성 및 수정 화면을 새 WindowGroup으로 표시
  • TodoEditorView 재사용 유지 및 저장 책임을 기존 부모 ViewModel로 위임
  • Todo 편집 윈도우 제출 이벤트를 typed observable 객체로 전달
  • Mac 전용 TodoEditorView 상단 UI 분리
  • HomeView 일부 버튼 탭 영역 보강

🔍 상세

  • ProcessInfo.processInfo.isiOSAppOnMac 기반 isiOSAppOnMac 환경 값 추가
  • TodoEditorWindowValue를 통해 작성/수정 윈도우에 필요한 값 전달
  • TodoEditorWindowView에서 기존 TodoEditorView를 재사용해 윈도우 전용 편집 화면 구성
  • TodoEditorWindowEvent를 기본 WindowGroup과 TodoEditor WindowGroup에 주입해 내부 이벤트 전달
  • HomeView, TodoListView, TodoDetailView에서 TodoEditorWindow 제출 이벤트를 수신해 기존 ViewModel action으로 위임
  • NotificationCenter 기반 내부 이벤트 전달 제거
  • Mac 실행 시 TodoEditorView의 leading 닫기 버튼 숨김 처리
  • Mac 실행 시 write/preview Picker를 제목 입력 필드 우측에 배치
  • RecentTodoRow 및 WebItemRow 버튼의 탭 인식 영역 보강

📸 영상 / 이미지 (Optional)

Uploading 화면 기록 2026-06-01 오전 12.42.10.mov…

@opficdev opficdev self-assigned this May 31, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 풀이 리퀘스트는 Mac 환경(isiOSAppOnMac)에서 Todo 편집 및 생성을 위한 독립적인 멀티 윈도우 지원 기능(TodoEditorWindowView, TodoEditorWindowValue, TodoEditorWindowEvent 등)을 추가합니다. 리뷰어는 matchesCreate 메서드 내 패턴 매칭에서 매개변수 섀도잉으로 인해 source 필터링이 오동작하는 심각한 버그를 지적했으며, 독립 윈도우의 저장 책임을 화면(View)에 위임할 때 발생할 수 있는 데이터 유실 위험과 @observable을 일회성 이벤트 브로드캐스팅에 사용할 때의 메모리 유지 및 불필요한 트리거 문제를 개선 사항으로 제안했습니다.

Comment thread Application/DevLogPresentation/Sources/Home/TodoEditorWindowView.swift Outdated
Comment thread Application/DevLogPresentation/Sources/Home/TodoEditorWindowEvent.swift Outdated
@github-actions

Copy link
Copy Markdown

❌ iOS CI build failed.

No compiler-style error diagnostics were found in build.log.

@opficdev opficdev merged commit 9335ec8 into develop Jun 1, 2026
1 check passed
@opficdev opficdev deleted the feat/#440-todo-detail branch June 1, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

맥으로 Todo를 작성 혹은 수정 시 시트 대신 새 창이 뜨도록 수정한다

1 participant