콘텐츠 상세 - 대여만 가능한 콘텐츠의 경우 소장 버튼이 보이지 않고 가격의 100%가 보이도록 수정

This commit is contained in:
Yu Sung
2023-10-22 17:41:56 +09:00
parent 115a30a7b6
commit 995c6adab7
6 changed files with 49 additions and 35 deletions

View File

@@ -10,6 +10,7 @@ import SwiftUI
struct ContentDetailPurchaseButton: View {
let price: Int
let isOnlyRental: Bool
var body: some View {
HStack(spacing: 0) {
@@ -26,7 +27,7 @@ struct ContentDetailPurchaseButton: View {
.font(.custom(Font.light.rawValue, size: 12))
.foregroundColor(.white)
Text(" 구매하기")
Text(isOnlyRental ? " 대여하기" : " 구매하기")
.font(.custom(Font.bold.rawValue, size: 14.7))
.foregroundColor(.white)
}