Skip to content

Conversation

@Hrepay
Copy link
Member

@Hrepay Hrepay commented Oct 19, 2025

#️⃣ 관련 이슈

Resolved #338

💡작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

1. 사용자 피드백 및 토스트 메시지 표준화

  • 기존의 presentBottomAlert 및 개별적인 토스트 메시지 호출을 showToast라는 공통 메소드로 통합했습니다.
  • 이를 통해 LoginViewControllerSetNickNameViewController에서 info, success, warning, danger 등 다양한 토스트 타입을 일관되게 관리하고, 사용자에게 일관된 피드백을 제공합니다.

2. 닉네임 유효성 검사 및 UI 피드백 강화

  • 닉네임 유효성 검사(중복, 형식 오류, 성공 등) 결과에 따라 텍스트 필드의 테두리 색상이 변경되도록 로직을 개선하고, 관련 헬퍼 메소드를 추가하여 코드를 중앙화했습니다.
  • 닉네임 검사 상태를 알려주는 힌트 메시지(예: "사용 가능한 닉네임입니다.") 끝에 마침표를 추가하여 문구 형식을 통일했습니다.
  • 유효한 닉네임일 때 표시되는 텍스트 색상을 디자인 에셋(Design Asset)의 컬러 값으로 변경했습니다.

3. UI 레이아웃 및 컴포넌트 일관성

  • 닉네임 설정 및 회원 탈퇴 화면에서 사용되는 주요 UI 컴포넌트(입력 필드, 드롭다운, 버튼)의 높이를 52pt로 통일하여 전체적인 UI 정렬을 개선했습니다.
  • 회원 탈퇴 뷰에서 표준화된 버튼 컴포넌트를 사용하도록 수정했으며, 향후 반응형 바인딩을 위해 Combine을 도입했습니다.

4. 코드베이스 유지보수 및 개발 경험 개선

  • Debug 빌드 시에는 Remote Config 확인 로직을 건너뛰도록 조건부 로직을 추가했습니다. 이를 통해 개발 중 불필요한 네트워크 요청을 줄여 개발 워크플로우를 개선했습니다.
  • 탭바 구조를 수정하여 손 쉽게 탭 바(Tab Bar)가 숨겨지도록 구현하여 디자인 통일성과 유지보수성을 향상 시켰습니다.

Simulator Screen Recording - iPhone Air - 2025-10-20 at 01 24 21

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

  • 이제 VC 최상단에 override var shouldHideTabBar: Bool { true }만 추가하면 해당 뷰는 하단 탭바가 없이 뷰가 뜹니다.
  • 커스텀 다이얼로그와 토스트 UI가 적용되지 않는 부분이 혹시나 있다면 수정해야합니다. 로그인 관련해서는 기본 Alert를 사용합니다. 자세한 애용은 피그마를 보시면 나와있습니다.
  • 리뷰쪽은 아직 미완성입니다. 리뷰 V2에서 피그마를 참고해서 보완부탁드립니다.

Hrepay added 30 commits October 16, 2025 15:17
@gemini-code-assist
Copy link

Summary of Changes

Hello @Hrepay, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 사용자에게 제공되는 피드백 시스템을 표준화하고, 앱 전반의 UI 일관성을 강화하며, 개발 효율성을 높이는 데 중점을 둡니다. 새로운 토스트 및 다이얼로그 컴포넌트를 도입하여 사용자 경험을 개선하고, 닉네임 유효성 검사 로직을 시각적으로 명확하게 만들었습니다. 또한, 탭바 가시성 제어 기능을 추가하고 디버그 환경에서의 불필요한 네트워크 요청을 제거하여 개발 워크플로우를 최적화했습니다.

Highlights

  • 사용자 피드백 및 토스트 메시지 표준화: 기존의 presentBottomAlert 및 개별적인 토스트 메시지 호출을 showToast라는 공통 메소드로 통합했습니다. 이를 통해 LoginViewControllerSetNickNameViewController에서 info, success, warning, danger 등 다양한 토스트 타입을 일관되게 관리하고 사용자에게 통일된 피드백을 제공합니다.
  • 닉네임 유효성 검사 및 UI 피드백 강화: 닉네임 유효성 검사 결과에 따라 텍스트 필드의 테두리 색상이 변경되도록 로직을 개선하고, 관련 헬퍼 메소드를 추가하여 코드를 중앙화했습니다. 힌트 메시지 끝에 마침표를 추가하고, 유효한 닉네임일 때 표시되는 텍스트 색상을 디자인 에셋의 컬러 값으로 변경하여 UI 일관성을 높였습니다.
  • UI 레이아웃 및 컴포넌트 일관성: 닉네임 설정 및 회원 탈퇴 화면에서 사용되는 주요 UI 컴포넌트(입력 필드, 드롭다운, 버튼)의 높이를 52pt로 통일하여 전체적인 UI 정렬을 개선했습니다. 회원 탈퇴 뷰에서는 표준화된 버튼 컴포넌트를 사용하도록 수정하고 Combine을 도입하여 반응형 바인딩을 준비했습니다.
  • 코드베이스 유지보수 및 개발 경험 개선: Debug 빌드 시에는 Remote Config 확인 로직을 건너뛰도록 조건부 로직을 추가하여 개발 중 불필요한 네트워크 요청을 줄였습니다. 또한, 탭바 구조를 수정하여 특정 뷰 컨트롤러에서 탭 바를 쉽게 숨길 수 있도록 구현하여 디자인 통일성과 유지보수성을 향상시켰습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


코드의 흐름, UI의 미학, 토스트 톡, 다이얼로그 짠, 사용자 경험, 빛나는 별, 개발자의 땀, 앱에 스며드네.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@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

이번 PR은 다이얼로그와 토스트 메시지를 표준화하고, 탭바 숨김 기능을 개선하는 등 앱 전반의 UI/UX 일관성과 코드 품질을 크게 향상시켰습니다. 특히 BaseViewControllershowToast, showCustomDialog를 추가하여 공통으로 사용하게 한 점과 키보드 높이에 따른 버튼 위치를 constraint 기반으로 조정한 점은 매우 좋은 개선입니다.
다만, 몇 가지 아쉬운 점이 있어 리뷰에 의견을 남겼습니다. CustomTabBarContainerController에서 뷰 컨트롤러 컨테인먼트 처리에 대한 수정이 필요해 보이며, SetNickNameViewController의 UI 로직을 View로 옮겨 역할 분리를 더 명확하게 하면 좋겠습니다. 전반적으로 코드베이스를 깔끔하고 유지보수하기 좋게 만드는 좋은 변경이라고 생각합니다.

Comment on lines 85 to 100
private func switchToViewController(at index: Int) {
let selectedVC = viewControllers[index]

// 기존 자식 뷰컨 정리
children.forEach { child in
child.view.removeFromSuperview()
child.removeFromParent()
}

// 새로운 뷰컨 추가
addChild(selectedVC)
view.insertSubview(selectedVC.view, belowSubview: tabBarView)
selectedVC.view.snp.makeConstraints {
$0.top.leading.trailing.equalToSuperview()
$0.bottom.equalTo(tabBarView.snp.top)
contentContainerView.subviews.forEach { $0.removeFromSuperview() }

let selectedNav = viewControllers[index]

contentContainerView.addSubview(selectedNav.view)
selectedNav.view.snp.makeConstraints {
$0.edges.equalToSuperview()
}
selectedVC.didMove(toParent: self)


tabBarView.setSelectedIndex(index)
currentIndex = index

// 현재 표시 중인 VC의 shouldHideTabBar 확인
updateTabBarVisibility(for: selectedNav.topViewController)
}

Choose a reason for hiding this comment

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

critical

switchToViewController(at:) 메서드에서 뷰 컨트롤러 컨테인먼트(View Controller Containment)가 올바르게 처리되지 않고 있습니다. addChildremoveFromParent를 호출하지 않으면 뷰 컨트롤러의 생명주기 메서드가 예상대로 호출되지 않거나, Responder Chain에 문제가 발생하는 등 예기치 않은 동작이 발생할 수 있습니다. 뷰 컨트롤러를 자식으로 추가하고 제거하는 로직을 포함하도록 수정이 필요합니다.

    private func switchToViewController(at index: Int) {
        // 이전 뷰 컨트롤러 제거
        if let previousVC = children.first {
            previousVC.willMove(toParent: nil)
            previousVC.view.removeFromSuperview()
            previousVC.removeFromParent()
        }
        
        // 새 뷰 컨트롤러 추가
        let selectedNav = viewControllers[index]
        addChild(selectedNav)
        contentContainerView.addSubview(selectedNav.view)
        selectedNav.view.snp.makeConstraints {
            $0.edges.equalToSuperview()
        }
        selectedNav.didMove(toParent: self)
        
        tabBarView.setSelectedIndex(index)
        currentIndex = index
        
        // 현재 표시 중인 VC의 shouldHideTabBar 확인
        updateTabBarVisibility(for: selectedNav.topViewController)
    }

Copy link
Member Author

Choose a reason for hiding this comment

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

제미나이가 추구하는 방식은 정석 애플 공식 가이드를 준수함에 따라 리뷰를 달아 준 것 같습니다.
원래 존재하던 방식은 View Controller Containment라고 부모-자식 관계를 유지하는 구조였는데, 탭바를 더 유동적으로 처리하기 위해 Child 배열을 사용하지 않고 View만 스위칭 하는 방식으로 변경했습니다. 각 view의 vc 같은 경우는 delegate를 통해 연결해주었고 탭바도 더 간편하게 유지보수 할 수 있습니다.

Copy link
Collaborator

@Funital Funital left a comment

Choose a reason for hiding this comment

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

작성된 탭바 숨김 함수를 사용해서 리뷰v2에 새로 적용을 해야겠네요 고생하셨습니다

@Hrepay Hrepay merged commit e27ee0b into develop Oct 28, 2025
@Hrepay Hrepay deleted the feat/#338 branch October 28, 2025 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 다이얼로그 UI 구현 및 하단 탭바 세팅

3 participants