Skip to content

Commit

Permalink
[Feat] Team-ShortcutsZip#528 - ReadShortcutView 댓글 작성 최대 높이 설정 변경
Browse files Browse the repository at this point in the history
- 댓글 작성 최대 높이 설정 변경
- 키보드 외의 영역 터치 시 키보드 내리기
  • Loading branch information
JMM00 committed May 2, 2024
1 parent 0968851 commit 1707c21
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -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)
}
}

0 comments on commit 1707c21

Please sign in to comment.