라이브 후원
- 비밀후원을 체크하면 힌트 메시지에 '비밀' 추가 - 후원메시지 최대 길이 50 -> 200 변경
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user