feat(gift): 선물 발송 폼을 추가한다
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import SwiftUI
|
||||
|
||||
struct GiftAgreementRow: View {
|
||||
let title: String
|
||||
@Binding var isAgreed: Bool
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .top, spacing: SodaSpacing.s4) {
|
||||
Button {
|
||||
isAgreed.toggle()
|
||||
} label: {
|
||||
HStack(alignment: .top, spacing: SodaSpacing.s8) {
|
||||
Image(isAgreed ? "btn_select_checked" : "btn_select_normal")
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
Text(title)
|
||||
.appFont(size: 12, weight: .regular)
|
||||
.foregroundColor(.gray300)
|
||||
.multilineTextAlignment(.leading)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
.frame(minHeight: 44, alignment: .top)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityValue(isAgreed ? "동의함" : "동의 안 함")
|
||||
|
||||
if let url = GiftConstants.termsURL {
|
||||
Link(destination: url) {
|
||||
Text("(필수)")
|
||||
.underline()
|
||||
.appFont(size: 12, weight: .regular)
|
||||
.foregroundColor(.soda400)
|
||||
.frame(minHeight: 44, alignment: .top)
|
||||
}
|
||||
.accessibilityLabel("필수 약관 보기")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user