From a04f7c590b77f68086059fff699e4d9b6fb03d99 Mon Sep 17 00:00:00 2001 From: hryeong66 Date: Thu, 3 Oct 2024 17:30:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B0=88=20=EB=93=B1=EB=A1=9D=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20textfield=20=ED=81=AC=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MemeEditor/Sources/MemeEditorView.swift | 26 +++++++++---------- .../Sources/RequiredInputTextFieldView.swift | 9 ++++--- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/Projects/Features/MemeEditor/Sources/MemeEditorView.swift b/Projects/Features/MemeEditor/Sources/MemeEditorView.swift index ed7dc02..2f5f01f 100644 --- a/Projects/Features/MemeEditor/Sources/MemeEditorView.swift +++ b/Projects/Features/MemeEditor/Sources/MemeEditorView.swift @@ -25,20 +25,18 @@ struct MemeEditorView: View { .foregroundStyle(Color.Background.assistive) .padding(.top, 50) ScrollView { - VStack { - ImageEditView( - imageUrl: viewModel.state.memeImageUrl, - onImageSelectionCompleted: { selectedImage in - viewModel.state.selectedImage = selectedImage - } - ) - memeTitleInputView - memeSourceInputView - divider - memeCategoriesTitleView - memeCategoriesView - } - .padding(.bottom, 48) + ImageEditView( + imageUrl: viewModel.state.memeImageUrl, + onImageSelectionCompleted: { selectedImage in + viewModel.state.selectedImage = selectedImage + } + ) + memeTitleInputView + memeSourceInputView + divider + memeCategoriesTitleView + memeCategoriesView + Spacer(minLength: 48) } if !viewModel.state.isVisibleKeyboard { diff --git a/Projects/Features/MemeEditor/Sources/RequiredInputTextFieldView.swift b/Projects/Features/MemeEditor/Sources/RequiredInputTextFieldView.swift index 14bc7aa..ceff976 100644 --- a/Projects/Features/MemeEditor/Sources/RequiredInputTextFieldView.swift +++ b/Projects/Features/MemeEditor/Sources/RequiredInputTextFieldView.swift @@ -22,6 +22,7 @@ struct RequiredTitleView: View { .padding(.leading, -4) .padding(.bottom, 10) } + .frame(height: 20) } } @@ -37,9 +38,9 @@ struct RequiredInputTextFieldView: View { } var body: some View { - VStack(alignment: .leading) { + VStack(alignment: .leading, spacing: 0) { RequiredTitleView(title: title) - .padding(.bottom, 8) + .padding(.bottom, 12) textFieldWithTextCountView } .padding(.horizontal, 20) @@ -60,12 +61,12 @@ struct RequiredInputTextFieldView: View { .foregroundStyle(content.isEmpty ? Color.Text.assistive : Color.clear) .font(Font.Body.Large.medium) .padding(.horizontal, 16) - .padding(.top, 12) + .padding(.top, 14) TextEditor(text: $content) .scrollContentBackground(.hidden) .scrollIndicators(.hidden) .padding(.horizontal, 12) - .padding(.top, 4) + .padding(.top, 6) .font(Font.Body.Large.medium) .foregroundStyle(Color.Text.primary) .onChange(of: content) { _ , newValue in