From 32202d88607d89638b01e8903f425c46e73d1065 Mon Sep 17 00:00:00 2001 From: ludelanier Date: Fri, 2 Feb 2024 15:10:08 +0100 Subject: [PATCH] progress validation answer --- .../Components/ChoiceFinalAnswerCell.swift | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift diff --git a/Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift b/Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift new file mode 100644 index 0000000..922bd1c --- /dev/null +++ b/Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift @@ -0,0 +1,27 @@ +// +// ChoiceFinalAnswerCell.swift +// AllIn +// +// Created by Lucas Delanier on 29/01/2024. +// + +import Foundation +import SwiftUI + +struct ChoiceFinalAnswerCell: View { + + @State var selected = false + var value = "OUI" + var rawColor = AllInColors.blueAccentColor + + var body: some View { + HStack{ + Spacer() + Text(value) + .textStyle(weight: .bold, color:rawColor, size: 40).padding(.vertical, 10) + Spacer() + }.background(AllInColors.whiteColor).onTapGesture() { + selected.toggle() + }.cornerRadius(17) + } +}