Skip to content

메인 탐색을 별도 사이드바와 단일 TabView로 전환한다 - #894

Merged
opficdev merged 5 commits into
developfrom
ui/#893
Sep 13, 2026
Merged

메인 탐색을 별도 사이드바와 단일 TabView로 전환한다#894
opficdev merged 5 commits into
developfrom
ui/#893

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

  • .sidebarAdaptable 전환 과정에서 남는 상단 영역 제거
  • 화면 너비와 관계없이 하나의 TabView(selection:)를 유지하면서 넓은 화면에 별도 사이드바 제공
  • 기존 탭별 Store, navigation path와 화면 갱신 동작 보존

📝 작업 내용

📌 요약

  • .tabViewStyle(.sidebarAdaptable) 제거
  • regular width와 Mac Designed for iPad에서 별도 SideBar 표시
  • compact width에서 시스템 tab bar 표시
  • 드래그로 너비를 조절할 수 있는 사이드바 구성
  • iPadOS 26 창 제어 영역과 사이드바 항목의 겹침 방지

🔍 상세

  • MainView.swift 내부에 private struct SideBar 구성
  • VStackButton을 이용한 Home, Today, Notification, Profile 탐색 구성
  • MainTab의 기존 제목과 symbol 재사용
  • 별도 사이드바와 시스템 tab bar에서 동일한 selectedTab과 읽지 않은 알림 수 공유
  • 프로필 탭의 사이드바 하단 배치
  • toolbarVisibility(_:for:)를 각 탭의 자식 콘텐츠에 적용해 시스템 tab bar 표시 상태 제어
  • 최소·기본·최대 너비를 받는 ResizableSideBarModifier 추가
  • 전역 좌표계의 드래그 이동량을 사용해 너비 조절 중 떨림 방지
  • 사이드바 배경과 구분선을 세로 safe area 끝까지 확장
  • iPadOS 26에서 GeometryProxy.containerCornerInsets.topLeading.height를 상단 padding으로 적용
  • 창 제어 영역 높이의 고정값 사용 제거
  • 기존 isTabContentActive, TodoEditorWindowEvent, Toast와 alert 전달 구조 유지

📸 영상 / 이미지 (Optional)

  • 별도 첨부 없음

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

chatgpt-codex-connector Bot commented Sep 13, 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-13T07:40:07.370481Z f1490a7 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f1490a7720

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Application/Presentation/Entry/Sources/Main/MainView.swift
Comment thread Application/Presentation/Entry/Sources/Main/MainView.swift
@opficdev
opficdev merged commit 7630c94 into develop Sep 13, 2026
9 checks passed
@opficdev
opficdev deleted the ui/#893 branch September 13, 2026 08:02
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.

메인 탐색을 별도 사이드바와 단일 TabView로 전환한다

1 participant