Skip to content

UIKitTextEditor를 Presentation 공통 다중 입력 컴포넌트로 확장한다 - #912

Merged
opficdev merged 4 commits into
developfrom
refactor/#911
Sep 22, 2026
Merged

opficdev merged 4 commits into
developfrom
refactor/#911

Conversation

@opficdev

@opficdev opficdev commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

Todo, 개발 목표, 개발 기록의 여러 줄 입력을 UIKitTextEditor로 통일하고, 최소 입력 공간을 확보하면서 긴 글은 내용에 맞춰 확장되는 편집 화면 구성

📝 작업 내용

📌 요약

  • UIKitTextEditor를 Presentation 공통 컴포넌트로 공개
  • 목표 설명과 기록 본문의 TextEditor를 UIKitTextEditor로 교체
  • GoalCreateView의 포커스 상태를 자식 View에 FocusState.Binding으로 전달
  • 공통 TextEditorContentLayout으로 안내 문구와 입력 영역 배치 통일

🔍 상세

  • 세 화면 모두 별도 SwiftUI Wrapper나 Representable 추가 없이 .composable(update:sizeThatFits:) 사용
  • 텍스트 Binding과 포커스 변경 콜백을 각 화면의 기존 상태에 연결
  • GoalCreateView가 포커스 상태를 소유하고 제목, 설명, 작성 모드 선택 화면은 부모의 Binding 공유
  • 안내 문구를 입력 영역 상단에 배치하고, 최소 높이에서 안내 문구와 간격을 제외한 공간을 편집기에 배분
  • UIKitTextEditor.fittingSize에서 제안된 폭으로 내용을 측정하고 내용 높이와 유효한 제안 높이 중 큰 값 반환
  • 목표 설명의 최소 높이 120, 기록 본문의 최소 높이 340, Todo의 동적 최소 높이 유지
  • Goal과 Record의 빈 입력 영역을 눌렀을 때 본문으로 포커스 이동
  • 저장 상태에 따라 isEditable과 isSelectable을 갱신하고 자동 수정은 .no로 통일
  • 기존 작성 및 미리보기 전환과 delegate 및 스크롤 위치 관찰 해제 처리 유지
  • Development에 ThirdParty 의존성을 추가하지 않고 기존 PresentationShared 의존 경로 사용

@opficdev opficdev self-assigned this Sep 22, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T07:35:11.663899Z 1570813 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@opficdev
opficdev merged commit ff1fc48 into develop Sep 22, 2026
9 checks passed
@opficdev
opficdev deleted the refactor/#911 branch September 22, 2026 09:06
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.

UIKitTextEditor를 Presentation 공통 다중 입력 컴포넌트로 확장한다

1 participant