mirror of
https://github.com/somegeekintn/SimDirs.git
synced 2026-04-27 14:57:40 +00:00
32 lines
838 B
Swift
32 lines
838 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]
|
|
|
|
var symbolName : String {
|
|
switch self {
|
|
case .iPad: return "ipad"
|
|
case .iPhone: return "iphone"
|
|
case .appleTV: return "appletv"
|
|
case .appleWatch: return "applewatch"
|
|
}
|
|
}
|
|
}
|
|
|
|
extension SimProductFamily: SourceItemData {
|
|
var title : String { self.rawValue }
|
|
var headerTitle : String { "Product Family: \(title)" }
|
|
var imageDesc : SourceImageDesc { .symbol(systemName: symbolName) }
|
|
}
|