코인 -> 캔 변경
This commit is contained in:
@@ -221,7 +221,7 @@ struct ContentCreateView: View {
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
TextField("가격을 입력하세요(10코인 이상)", text: $viewModel.priceString)
|
||||
TextField("가격을 입력하세요(10캔 이상)", text: $viewModel.priceString)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.font(.custom(Font.bold.rawValue, size: 14.7))
|
||||
@@ -232,7 +232,7 @@ struct ContentCreateView: View {
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("코인")
|
||||
Text("캔")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
}
|
||||
@@ -258,7 +258,7 @@ struct ContentCreateView: View {
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Text("※ 콘텐츠의 최소금액은 10코인 입니다")
|
||||
Text("※ 콘텐츠의 최소금액은 10캔 입니다")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
@@ -206,7 +206,7 @@ final class ContentCreateViewModel: ObservableObject {
|
||||
}
|
||||
|
||||
if !isFree && price < 10 {
|
||||
errorMessage = "콘텐츠의 최소금액은 10코인 입니다."
|
||||
errorMessage = "콘텐츠의 최소금액은 10캔 입니다."
|
||||
isShowPopup = true
|
||||
return false
|
||||
}
|
||||
|
@@ -397,7 +397,7 @@ final class ContentDetailViewModel: ObservableObject {
|
||||
|
||||
func donation(can: Int, comment: String) {
|
||||
if can <= 0 {
|
||||
self.errorMessage = "1코인 이상 후원하실 수 있습니다."
|
||||
self.errorMessage = "1캔 이상 후원하실 수 있습니다."
|
||||
self.isShowPopup = true
|
||||
} else if comment.trimmingCharacters(in: .whitespaces).isEmpty {
|
||||
self.errorMessage = "함께 보낼 메시지를 입력하세요."
|
||||
@@ -422,7 +422,7 @@ final class ContentDetailViewModel: ObservableObject {
|
||||
|
||||
if decoded.success {
|
||||
UserDefaults.set(UserDefaults.int(forKey: .can) - can, forKey: .can)
|
||||
self.errorMessage = "\(can)코인을 후원하셨습니다."
|
||||
self.errorMessage = "\(can)캔을 후원하셨습니다."
|
||||
self.isShowPopup = true
|
||||
|
||||
self.getAudioContentDetail()
|
||||
|
@@ -87,7 +87,7 @@ struct ContentOrderConfirmDialogView: View {
|
||||
.cornerRadius(5.3)
|
||||
.padding(.top, 21.3)
|
||||
|
||||
Text("콘텐츠를 \(orderType == .RENTAL ? "대여" : "소장")하시겠습니까?\n아래 코인이 차감됩니다.")
|
||||
Text("콘텐츠를 \(orderType == .RENTAL ? "대여" : "소장")하시겠습니까?\n아래 캔이 차감됩니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
|
@@ -108,9 +108,8 @@ struct LiveRoomDonationDialogView: View {
|
||||
.background(Color(hex: "9970ff"))
|
||||
.cornerRadius(6.7)
|
||||
.onTapGesture {
|
||||
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty,
|
||||
let coin = Int(donationCan) {
|
||||
donationCan = "\(coin + 100)"
|
||||
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty, let can = Int(donationCan) {
|
||||
donationCan = "\(can + 100)"
|
||||
} else {
|
||||
donationCan = "\(100)"
|
||||
}
|
||||
|
Reference in New Issue
Block a user