Created
June 28, 2018 13:03
-
-
Save daoseng33/945aad588aae6de10df6a694d2c6644d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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