Skip to content

Commit

Permalink
fix: 밈 등록하기 textfield 크기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hryeong66 committed Oct 3, 2024
1 parent 2df9545 commit a04f7c5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
26 changes: 12 additions & 14 deletions Projects/Features/MemeEditor/Sources/MemeEditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct RequiredTitleView: View {
.padding(.leading, -4)
.padding(.bottom, 10)
}
.frame(height: 20)
}
}

Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit a04f7c5

Please sign in to comment.