// // DropDownAnswerMenu.swift // AllIn // // Created by Lucas Delanier on 16/01/2024. // import SwiftUI // // DropDownMenu.swift // AllIn // // Created by Emre on 19/10/2023. // import SwiftUI struct DropDownAnswerMenu: View { @State var expand = false @Binding var selectedOption: Int var options: [(Int, String, Float)] var body: some View { VStack(spacing: 0, content: { Button(action: { self.expand.toggle() }) { HStack{ Text(options[selectedOption].1.description) .textStyle(weight: .bold, color: AllInColors.blueAccentColor, size: 20) Text(options[selectedOption].2.description) .textStyle(weight: .bold, color: AllInColors.lightPurpleColor, size: 10) Spacer() Image(expand ? "chevronUpIcon" : "chevronDownIcon").resizable().frame(width: 15, height: 10).scaledToFill() } .padding([.leading, .trailing], 15) .frame(height: 43) } if expand { Rectangle() .frame(height: 1) .foregroundColor(AllInColors.delimiterGrey) .padding(.bottom, 18) VStack(spacing: 0) { ForEach(0..