Skip to content

Commit

Permalink
Merge pull request #132 from Team-B1ND/hotfix/nightstudy-reason-alert
Browse files Browse the repository at this point in the history
fix: Alert nightstudy reason
  • Loading branch information
jyw28 authored Aug 30, 2024
2 parents 84e1e9a + 827e0b3 commit bf3dfe8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,24 @@ struct NightStudyApplyView: View {
var body: some View {
DodamScrollView.medium(title: "심야 자습 신청하기") {
VStack(alignment: .leading, spacing: 24) {

DodamTextField.default(
title: "심야 자습 사유",
text: $viewModel.reasonText
)
.makeFirstResponder()
.padding(.top, 16)
.padding(.bottom, 22)
.padding(.horizontal, 8)
.focused($focused)
.overlay(alignment: .bottomLeading) {
if(viewModel.reasonText.count < 10) {
Text("10글자 이상 입력하세요")
.font(.system(size: 14, weight: .regular))
.foreground(DodamColor.Status.negative)
.padding(.horizontal, 8)
}
}

VStack(spacing: 16) {
HStack(spacing: 16) {
Expand Down

0 comments on commit bf3dfe8

Please sign in to comment.