I've developed an iOS app with a button, segment control and a uiimageview. In the assets folder, there are 26 pictures, named card1 to card26. If I use the below code, it displays each of the 26 images in a random order. How would I flip that code to show each picture in order of image name, card1...card2...etc? I've searched for the last hour and cant find exactly what I'm looking for. I appreciate the help.
let Number = Int.random(in: 2...26) imageView.image = UIImage(named: "card\(Number)")