Skip to content

[#156] TodoDetailView에서 dueDate를 보여주는 UI를 개선한다#157

Merged
opficdev merged 3 commits intodevelopfrom
refactor/#156-TodoDetailView
Mar 1, 2026
Merged

[#156] TodoDetailView에서 dueDate를 보여주는 UI를 개선한다#157
opficdev merged 3 commits intodevelopfrom
refactor/#156-TodoDetailView

Conversation

@opficdev
Copy link
Owner

@opficdev opficdev commented Mar 1, 2026

@opficdev opficdev self-assigned this Mar 1, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello, 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!

이 Pull Request는 TodoDetailView에서 할 일의 마감일과 태그 정보를 표시하는 사용자 인터페이스를 개선합니다. 기존에 본문에 직접 표시되던 마감일과 태그 정보를 별도의 정보 시트로 분리하여, 사용자가 필요할 때만 상세 정보를 확인할 수 있도록 변경했습니다. 또한, 툴바 버튼 컴포넌트를 재사용 가능한 형태로 분리하여 코드의 재사용성과 유지보수성을 높였습니다.

Highlights

  • UI 개선: TodoDetailView에서 할 일의 마감일과 태그 정보를 별도의 정보 시트로 분리하여 표시하도록 개선했습니다.
  • 툴바 컴포넌트 모듈화: 기존 SheetToolbar를 제거하고, 재사용 가능한 ToolbarLeadingButton과 ToolbarTrailingButton 컴포넌트를 새로 추가하여 툴바 구현을 통일했습니다.
  • ViewModel 업데이트: TodoDetailViewModel에 정보 시트 표시를 위한 showInfo 상태와 관련 액션을 추가했습니다.
Changelog
  • DevLog/Presentation/ViewModel/TodoDetailViewModel.swift
    • State 구조체에 showInfo 불리언 속성을 추가했습니다.
    • Action 열거형에 setShowInfo 케이스를 추가했습니다.
    • reduce 메서드에 setShowInfo 액션 처리 로직을 구현했습니다.
  • DevLog/UI/Common/Componeent/SheetToolbar.swift
    • 더 이상 사용되지 않는 SheetToolbar 파일을 제거했습니다.
  • DevLog/UI/Common/Componeent/ToolbarButton+.swift
    • 툴바의 선행 버튼을 위한 ToolbarLeadingButton 구조체를 추가했습니다.
    • 툴바의 후행 버튼을 위한 ToolbarTrailingButton 구조체를 추가했습니다.
  • DevLog/UI/Home/TodoDetailView.swift
    • 할 일 제목의 폰트를 굵게 표시하도록 수정했습니다.
    • 기존에 본문에 직접 표시되던 마감일과 태그 정보를 제거했습니다.
    • showInfo 상태에 따라 마감일과 태그를 표시하는 sheetContent 뷰를 추가했습니다.
    • 툴바에 정보 아이콘 버튼을 추가하여 sheetContent를 시트로 띄우도록 했습니다.
    • 툴바 버튼 구현을 새로 추가된 ToolbarLeadingButton과 ToolbarTrailingButton으로 변경했습니다.
  • DevLog/UI/Home/TodoEditorView.swift
    • SheetToolbar 컴포넌트 사용을 ToolbarLeadingButton과 ToolbarTrailingButton으로 대체했습니다.
  • DevLog/UI/Setting/PushNotificationSettingsView.swift
    • SheetToolbar 컴포넌트 사용을 ToolbarLeadingButton과 ToolbarTrailingButton으로 대체했습니다.
Activity
  • 이 Pull Request에 대한 특정 활동 (예: 댓글, 검토)은 제공되지 않았습니다.
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.

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은 TodoDetailView에서 마감일과 태그를 보여주는 UI를 개선하기 위해 별도의 정보 시트(sheet)를 추가하는 변경 사항을 담고 있습니다. 기존에 사용되던 SheetToolbar를 재사용 가능한 ToolbarLeadingButtonToolbarTrailingButton으로 리팩토링하여 코드의 모듈성을 높인 점이 좋습니다.

다만, 코드 전반에 걸쳐 #available 조건문에서 iOS 버전을 26.0으로 잘못 기재한 부분이 여러 곳에서 발견되었습니다. 이로 인해 해당 코드 블록이 절대로 실행되지 않는 심각한 버그가 발생할 수 있습니다. Button(role:)은 iOS 15.0부터, ToolbarSpacer는 iOS 16.0부터 사용 가능하므로, 올바른 버전으로 수정해야 합니다.

Comment on lines +15 to +18
if #available(iOS 26.0, *) {
Button(role: .cancel) {
action?()
}

Choose a reason for hiding this comment

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

critical

#available 확인에서 iOS 버전이 26.0으로 잘못 지정되어 있습니다. Button(role:)은 iOS 15.0부터 사용 가능하므로, iOS 15.0으로 수정해야 합니다. 현재 코드는 의도한 대로 동작하지 않으며, else 블록의 레거시 코드만 실행됩니다.

Suggested change
if #available(iOS 26.0, *) {
Button(role: .cancel) {
action?()
}
if #available(iOS 15.0, *) {
Button(role: .cancel) {
action?()
}

Comment on lines +46 to +50
if #available(iOS 26.0, *) {
Button(role: .confirm) {
action?()
}
.disabled(isDisabled)

Choose a reason for hiding this comment

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

critical

여기에서도 #available 확인의 iOS 버전이 26.0으로 잘못 지정되어 있습니다. Button(role:)은 iOS 15.0부터 사용 가능하므로 iOS 15.0으로 수정해야 합니다.

Suggested change
if #available(iOS 26.0, *) {
Button(role: .confirm) {
action?()
}
.disabled(isDisabled)
if #available(iOS 15.0, *) {
Button(role: .confirm) {
action?()
}
.disabled(isDisabled)

Comment on lines +62 to +64
if #available(iOS 26.0, *) {
ToolbarSpacer(.fixed, placement: .topBarTrailing)
}

Choose a reason for hiding this comment

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

critical

#available 확인에서 iOS 버전이 26.0으로 잘못 지정되어 있습니다. ToolbarSpacer는 iOS 16.0부터 사용 가능하므로, iOS 16.0으로 수정해야 합니다. 이 코드는 현재 어떤 iOS 버전에서도 실행되지 않습니다.

        if #available(iOS 16.0, *) {
            ToolbarSpacer(.fixed, placement: .topBarTrailing)
        }

@opficdev opficdev merged commit 9998a25 into develop Mar 1, 2026
1 check passed
@opficdev opficdev deleted the refactor/#156-TodoDetailView branch March 1, 2026 10:52
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.

TodoDetailView에서 dueDate를 보여주는 UI를 개선한다

1 participant