Skip to content

Instantly share code, notes, and snippets.

@thatswiftguy
Last active March 6, 2021 11:10
Show Gist options
  • Select an option

  • Save thatswiftguy/079182af3e5d900642671b056e40c1c0 to your computer and use it in GitHub Desktop.

Select an option

Save thatswiftguy/079182af3e5d900642671b056e40c1c0 to your computer and use it in GitHub Desktop.
import UIKit
enum WeatherStateImage : CaseIterable {
static let sun = UIImage(systemName: "sun.min")
static let cloud = UIImage(systemName: "cloud")
static let rainingCloud = UIImage(systemName: "cloud.drizzle")
}
let numOfImages = WeatherStateImage.allCases.count
print(numOfImages)
for i in WeatherStateImage.allCases {
print(i)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment