gh-somegeekintn-SimDirs/SimDirs/Model/SimProductFamily.swift
2022-05-25 13:24:20 -05:00

31 lines
762 B
Swift

//
// SimProductFamily.swift
// SimDirs
//
// Created by Casey Fleser on 5/24/22.
//
import Foundation
enum SimProductFamily: String, Decodable {
case appleTV = "Apple TV"
case appleWatch = "Apple Watch"
case iPad
case iPhone
static let presentation : [SimProductFamily] = [.iPhone, .iPad, .appleWatch, .appleTV]
}
extension SimProductFamily: PresentableItem {
var title : String { return self.rawValue }
var id : String { return self.rawValue }
var imageName : String {
switch self {
case .iPad: return "ipad"
case .iPhone: return "iphone"
case .appleTV: return "appletv"
case .appleWatch: return "applewatch"
}
}
}