feat(component): 액션 모달 강조색을 지원한다

This commit is contained in:
Yu Sung
2026-10-08 12:32:45 +09:00
parent c3d2a5abbb
commit a5398b7658
@@ -11,6 +11,7 @@ struct SodaV2ActionModal: View {
let button1: SodaV2ActionModalButton?
let button2: SodaV2ActionModalButton?
let onDimmedTap: () -> Void
var primaryTextColor: Color = .soda400
private var visibleButtons: [(label: String, action: () -> Void, isPrimary: Bool)] {
var buttons = [(label: String, action: () -> Void, isPrimary: Bool)]()
@@ -79,7 +80,7 @@ struct SodaV2ActionModal: View {
Button(action: action) {
Text(title)
.appFont(size: 18, weight: .medium)
.foregroundColor(isPrimary ? Color.soda400 : Color.white)
.foregroundColor(isPrimary ? primaryTextColor : Color.white)
.frame(maxWidth: .infinity)
.padding(14)
.background(Color.clear)