I have an array of cards and want to put them into an array of decks. Users can make their own decks and creates cards within. I've finished making the flashcard part of the app and you can make one deck only.
NavigationView {
Section {
List(decks) { deck in
NavigationButton(destination: ContentView (deck: testDeck))
DecksRow(deck: testDeck)
}
}
} .navigationBarTitle(Text: "Rows")
}
I am new to swiftUI.