hello everyone, I'm working on creating my own flashcards app and I found a problem where I'm actually able to fetch the data from CoreData, however, in the closure of ForEach loop, I'm not able to create a stack of flashcards.
Here's the code:
ForEach(flashCardData, id: \.self) { flashcards in
// FlashcardView(flashcard: flashcard)
// Text(flashcards.name ?? "nothing") - have to create a code where it's above
VStack {
Text(flashcards.term ?? "nothing")
.font(.largeTitle)
.bold()
if isShown {
Text(flashcards.definition ?? "nothing")
.font(.largeTitle)
.bold()
}
}