From 1707c2176d17a7c27d759a024d065412505db089 Mon Sep 17 00:00:00 2001 From: jeonjimin Date: Thu, 2 May 2024 17:33:06 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20#528=20-=20ReadShortcutView=20?= =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=9E=91=EC=84=B1=20=EC=B5=9C=EB=8C=80=20?= =?UTF-8?q?=EB=86=92=EC=9D=B4=20=EC=84=A4=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 댓글 작성 최대 높이 설정 변경 - 키보드 외의 영역 터치 시 키보드 내리기 --- .../Views/ReadShortcutViews/ReadShortcutView.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HappyAnding/HappyAnding/Views/ReadShortcutViews/ReadShortcutView.swift b/HappyAnding/HappyAnding/Views/ReadShortcutViews/ReadShortcutView.swift index 91d350dc..67e944b4 100644 --- a/HappyAnding/HappyAnding/Views/ReadShortcutViews/ReadShortcutView.swift +++ b/HappyAnding/HappyAnding/Views/ReadShortcutViews/ReadShortcutView.swift @@ -598,6 +598,9 @@ struct ReadShortcutCommentView: View { .cornerRadius(16 ,corners: (viewModel.comment.depth == 1) && (!viewModel.isEditingComment) ? [.bottomLeft, .bottomRight] : .allCorners) ) } + .onAppear { + UIApplication.shared.hideKeyboard() + } .padding(.bottom, isFocused ? 7.5 : 70) .id("CommentTextField") } @@ -635,7 +638,6 @@ private struct CommentTextFieldStyle: TextFieldStyle { .disableAutocorrection(true) .textInputAutocapitalization(.never) .descriptionReadable() - .lineLimit(11) - .frame(maxWidth: .infinity, alignment: .leading) + .frame(maxWidth: .infinity, maxHeight: 271, alignment: .leading) } }