Learn Courses My Dashboard

Module 2 Lesson 2 Array Card Structure

Hi guys.

I was wondering why app is not running properly, if i declare variables number and suit inside Card structure, as @State as seen below.

struct Card {

 @State var number = 1
 @State var suits = 0


Many thanks

Need more of the code than that to know what’s up. Please provide the whole view to determine what’s up