Created
June 28, 2018 12:56
-
-
Save daoseng33/e60ebe0e107a2f51c8c4cb90194ac0ef 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 { | |
case regular | |
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