Skip to content

Commit

Permalink
[Feat] #14 - 글자수 세기 및 경고 문구 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yungu0010 committed Sep 3, 2024
1 parent e562c60 commit 8ace169
Showing 1 changed file with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,24 @@ struct PophoryTextField: View {
let placeholder: String

var body: some View {
TextField(placeholder, text: $text)
.textFieldStyle(PophoryTextFieldStyle(isEmpty: .constant(text.isEmpty))
)
VStack {
TextField(placeholder, text: $text)
.textFieldStyle(PophoryTextFieldStyle(isEmpty: .constant(text.isEmpty))
)

HStack {
Text("Error Message")
.fontWithLineHeightView(fontType: .caption01Medium)
.padding(.leading, 6)

Spacer()

Text("(\(text.count)/12)")
.fontWithLineHeightView(fontType: .text01Medium)
.foregroundStyle(.gray400)
}
.padding(.top, 10)
}
}
}

Expand Down

0 comments on commit 8ace169

Please sign in to comment.