Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
enum Type: Int {
case regular = 0
case system
case advertise
var image: UIImage? {
switch self {
case .regular:
return UIImage(named: "regular")
case .system:
return UIImage(named: "system")
case .advertise:
return UIImage(named: "advertise")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment