Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. class Sport: Mappable, Hashable, Codable {
  2. let id: SportType
  3. let name: String
  4. let order: Int
  5. let iconName: String
  6.  
  7. enum IconSize: Int {
  8. case small
  9. case large
  10. case normal
  11.  
  12. func iconSizeValue() -> String {
  13. switch self{
  14. case .small:
  15. return "Small"
  16. case .large:
  17. return "Tab"
  18. case .normal:
  19. return ""
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement