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