feat(gift): 선물 발송 폼을 추가한다

This commit is contained in:
Yu Sung
2026-10-08 12:32:45 +09:00
parent 0383115ca7
commit c356efbed2
3 changed files with 112 additions and 0 deletions
@@ -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("필수 약관 보기")
}
}
}
}