diff --git a/Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/MissionCard.swift b/Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/MissionCard.swift new file mode 100644 index 00000000..601b0568 --- /dev/null +++ b/Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/MissionCard.swift @@ -0,0 +1,43 @@ +// +// MissionCard.swift +// Cherrish-iOS +// +// Created by sumin Kong on 1/11/26. +// + +import SwiftUI + +struct MissionCard: View { + + let missionText: String + @Binding var isSelected: Bool + + var body: some View { + VStack(alignment: .leading) { + + HStack { + Spacer() + Image(isSelected ? "radiobtn_selected" : "radiobtn_default") + } + + Spacer() + + Text(missionText) + .typography(.body1_m_14) + .foregroundStyle(isSelected ? .gray800 : .gray700) + .padding(.leading, 8) + .padding(.bottom, 6) + } + .padding(.horizontal, 7) + .padding(.vertical, 6) + .frame(width: 148, height: 80) + .background(isSelected ? .red200 : .gray0) + .overlay( + RoundedRectangle(cornerRadius: 10) + .stroke(isSelected ? .red500 : .gray500, lineWidth: 1) + ) + .onTapGesture { + isSelected.toggle() + } + } +} diff --git a/Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift b/Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift new file mode 100644 index 00000000..dc042241 --- /dev/null +++ b/Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift @@ -0,0 +1,29 @@ +// +// SelectionChip.swift +// Cherrish-iOS +// +// Created by sumin Kong on 1/11/26. +// + +import SwiftUI + +struct SelectionChip: View { + + let title: String + @Binding var isSelected: Bool + + var body: some View { + Text(title) + .typography(.body1_m_14) + .foregroundStyle(isSelected ? .gray800 : .gray700) + .frame(width: 148, height: 80) + .background(isSelected ? .red200 : .gray0) + .overlay( + RoundedRectangle(cornerRadius: 10) + .stroke(isSelected ? .red500 : .gray500, lineWidth: 1) + ) + .onTapGesture { + isSelected.toggle() + } + } +}