contains image names stored in enums with methods to return them as a usable value
Summary: case names are friendly card names (two through Ace) | Rawvalue type Int | Conforms to CaseIterable
Summary: game images are stored here
Summary: returns game image names
Summary: returns card image names
Usage:
In ContentView
:
randomCard()
uses a random number to get a random card and convert it to a card name. It returns the rawValue and cardName in a tuple- in the
body
, the logo and background use the image function