From 9973ae76bfb3490f548ed011ed680eceb4d1ced6 Mon Sep 17 00:00:00 2001 From: opficdev Date: Fri, 22 May 2026 10:20:34 +0900 Subject: [PATCH 1/2] =?UTF-8?q?ui:=20Picker=20=ED=98=95=ED=83=9C=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Home/TodoEditorView.swift | 43 ++++++++----------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift b/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift index 9d0d126e..46801b6b 100644 --- a/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift +++ b/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift @@ -106,32 +106,27 @@ struct TodoEditorView: View { } private var tabViewSelector: some View { - VStack(spacing: 0) { - HStack(spacing: 0) { - Button(action: { - viewModel.send(.setTabViewTag(.editor)) - field = .content - }) { - Text(String(localized: "todo_edit")) - .frame(maxWidth: .infinity) - .foregroundStyle( - viewModel.state.tabViewTag == .editor ? Color.primary : Color.secondary - ) - } - Divider() - Button(action: { - transitionToPreview() - }) { - Text(String(localized: "todo_preview")) - .frame(maxWidth: .infinity) - .foregroundStyle( - viewModel.state.tabViewTag == .preview ? Color.primary : Color.gray - ) + Picker( + "", + selection: Binding( + get: { viewModel.state.tabViewTag }, + set: { tag in + if tag == .editor { + viewModel.send(.setTabViewTag(.editor)) + field = .content + } else { + transitionToPreview() + } } - } - .padding(.vertical, 10) - .background(Color(.systemBackground)) + ) + ) { + Text(String(localized: "todo_edit")) + .tag(TodoEditorViewModel.Tag.editor) + Text(String(localized: "todo_preview")) + .tag(TodoEditorViewModel.Tag.preview) } + .pickerStyle(.segmented) + .padding(.horizontal) } private var tabView: some View { From 296aedb851751e80e33bd0e96891f4bcd5c68ce5 Mon Sep 17 00:00:00 2001 From: opficdev Date: Fri, 22 May 2026 10:41:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?ui:=20=EC=88=98=EC=A0=95=20->=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=20=ED=98=95=ED=83=9C=EB=A1=9C=20=ED=85=8D=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Resource/Localizable.xcstrings | 17 +++++++++++++++++ .../Sources/Home/TodoEditorView.swift | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Application/DevLogApp/Sources/Resource/Localizable.xcstrings b/Application/DevLogApp/Sources/Resource/Localizable.xcstrings index 6469af01..fc0aec2c 100644 --- a/Application/DevLogApp/Sources/Resource/Localizable.xcstrings +++ b/Application/DevLogApp/Sources/Resource/Localizable.xcstrings @@ -2689,6 +2689,23 @@ } } }, + "todo_write" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Write" + } + }, + "ko" : { + "stringUnit" : { + "state" : "translated", + "value" : "작성" + } + } + } + }, "todo_editor_description_optional" : { "extractionState" : "manual", "localizations" : { diff --git a/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift b/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift index 46801b6b..b7b1e4fa 100644 --- a/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift +++ b/Application/DevLogPresentation/Sources/Home/TodoEditorView.swift @@ -120,7 +120,7 @@ struct TodoEditorView: View { } ) ) { - Text(String(localized: "todo_edit")) + Text(String(localized: "todo_write")) .tag(TodoEditorViewModel.Tag.editor) Text(String(localized: "todo_preview")) .tag(TodoEditorViewModel.Tag.preview)