mirror of
https://github.com/somegeekintn/SimDirs.git
synced 2026-04-26 14:47:41 +00:00
31 lines
762 B
Swift
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"
|
|
}
|
|
}
|
|
}
|