Skip to content

[#459] SettingView에서 내비게이션이 되지 않는 현상을 해결한다#480

Merged
opficdev merged 3 commits into
developfrom
fix/#459-SettingView
May 21, 2026
Merged

[#459] SettingView에서 내비게이션이 되지 않는 현상을 해결한다#480
opficdev merged 3 commits into
developfrom
fix/#459-SettingView

Conversation

@opficdev
Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

  • Settings 화면의 내비게이션 흐름을 Profile 흐름과 동일한 기준으로 정리
  • compact / regular 전환 시 Settings 화면만 다른 UX를 가지지 않도록 책임 위치 통일
  • Settings 하위 화면의 상태 유지 범위를 화면 생명주기에 맞게 조정

📝 작업 내용

📌 요약

  • ProfileViewCoordinator 추가
  • Profile 화면의 내비게이션 상태와 Settings 화면 공통 상태를 코디네이터에서 관리하도록 변경
  • SettingView 내부 중복 destination 제거
  • Settings 하위 화면 이동을 ProfileRoute 기반으로 통합

🔍 상세

  • MainView에서 ProfileViewCoordinator 생성 및 ProfileView 주입
  • MainViewCoordinator에서 Profile 화면 전용 책임 제거
  • ProfileView에서 ProfileRoute destination을 단일 지점으로 관리하도록 변경
  • SettingView에서 router.push(.theme / .pushNotification / .account)만 수행하도록 정리
  • ThemeView가 Settings 화면과 동일한 SettingViewModel 상태를 사용하도록 연결
  • PushNotificationSettingsViewModel, AccountViewModel은 상세 화면 진입 시 생성하도록 유지

📸 영상 / 이미지 (Optional)

Simulator.Screen.Recording.-.iPad.Pro.13-inch.M5.-.2026-05-21.at.12.01.34.mov

@opficdev opficdev self-assigned this May 21, 2026
Copy link
Copy Markdown
Contributor

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

Choose a reason for hiding this comment

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

Code Review

이 풀 리퀘스트는 ProfileView의 상태 관리 및 내비게이션 로직을 ProfileViewCoordinator로 이관하여 아키텍처를 개선하는 내용을 담고 있습니다. 주요 피드백으로는 SettingView에만 국한된 router 환경 객체 주입 범위를 NavigationStack 전체로 확장하여 하위 뷰의 런타임 에러를 방지할 것과, navigationDestination에서 ViewModel이 매번 새로 생성되지 않도록 캐싱 로직을 도입할 것을 권장했습니다. 또한, @Bindable을 활용하여 수동 Binding 생성을 제거하고 가독성을 높이는 코드 개선 사항이 포함되었습니다.

Comment thread Application/DevLogPresentation/Sources/Profile/ProfileView.swift
Comment thread Application/DevLogPresentation/Sources/Profile/ProfileView.swift
Comment thread Application/DevLogPresentation/Sources/Profile/ProfileView.swift Outdated
Comment thread Application/DevLogPresentation/Sources/Profile/ProfileView.swift
@opficdev opficdev added the qa TestFlight에 배포 label May 21, 2026
@opficdev opficdev merged commit a6c2bca into develop May 21, 2026
1 check passed
@opficdev opficdev deleted the fix/#459-SettingView branch May 21, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qa TestFlight에 배포

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SettingView에서 내비게이션이 되지 않는 현상을 해결한다

1 participant