1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-27 02:02:38 +01:00
metatext-app-ios-iphone-ipad/Extensions/Timeline+Extensions.swift
2021-01-21 21:00:29 -08:00

41 lines
1.2 KiB
Swift

// Copyright © 2021 Metabolist. All rights reserved.
import Foundation
import ViewModels
extension Timeline {
var title: String {
switch self {
case .home:
return NSLocalizedString("timelines.home", comment: "")
case .local:
return NSLocalizedString("timelines.local", comment: "")
case .federated:
return NSLocalizedString("timelines.federated", comment: "")
case let .list(list):
return list.title
case let .tag(tag):
return "#".appending(tag)
case .profile:
return ""
case .favorites:
return NSLocalizedString("favorites", comment: "")
case .bookmarks:
return NSLocalizedString("bookmarks", comment: "")
}
}
var systemImageName: String {
switch self {
case .home: return "house"
case .local: return "building.2.crop.circle"
case .federated: return "network"
case .list: return "scroll"
case .tag: return "number"
case .profile: return "person"
case .favorites: return "star"
case .bookmarks: return "bookmark"
}
}
}