feat: 라이브 후원 메시지 글자 수 조정
- 200자 -> 1000자
This commit is contained in:
@@ -204,7 +204,7 @@ struct LiveRoomDonationDialogView: View {
|
|||||||
.stroke(Color.graybb, lineWidth: 1)
|
.stroke(Color.graybb, lineWidth: 1)
|
||||||
)
|
)
|
||||||
|
|
||||||
TextField("함께 보낼 \(isSecret ? "비밀 " : "")메시지 입력(최대 200자)", text: $donationMessage)
|
TextField("함께 보낼 \(isSecret ? "비밀 " : "")메시지 입력(최대 1000자)", text: $donationMessage)
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color.grayee)
|
.foregroundColor(Color.grayee)
|
||||||
.padding(13.3)
|
.padding(13.3)
|
||||||
@@ -286,8 +286,8 @@ struct LiveRoomDonationDialogView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func limitText() {
|
func limitText() {
|
||||||
if donationMessage.count > 200 {
|
if donationMessage.count > 1000 {
|
||||||
donationMessage = String(donationMessage.prefix(200))
|
donationMessage = String(donationMessage.prefix(1000))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user