라이브 후원

- 비밀후원을 체크하면 힌트 메시지에 '비밀' 추가
- 후원메시지 최대 길이 50 -> 200 변경
This commit is contained in:
Yu Sung 2024-10-28 23:58:05 +09:00
parent 54f70609c5
commit 1fa2d1cb0d
1 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ struct LiveRoomDonationDialogView: View {
.stroke(Color.graybb, lineWidth: 1)
)
TextField("함께 보낼 메시지 입력(최대 50자)", text: $donationMessage)
TextField("함께 보낼 \(isSecret ? "비밀 " : "")메시지 입력(최대 200자)", text: $donationMessage)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color.grayee)
.padding(13.3)
@ -279,8 +279,8 @@ struct LiveRoomDonationDialogView: View {
}
func limitText() {
if donationMessage.count > 50 {
donationMessage = String(donationMessage.prefix(50))
if donationMessage.count > 200 {
donationMessage = String(donationMessage.prefix(200))
}
}
}