Tusker/Tusker/Extensions/Timline+UI.swift

29 lines
549 B
Swift
Raw Normal View History

2019-06-11 17:21:22 +00:00
// Timline+UI.swift
// Tusker
//
// Created by Shadowfacts on 6/11/19.
// Copyright © 2019 Shadowfacts. All rights reserved.
//
import UIKit
import Pachyderm
extension Timeline {
var title: String {
switch self {
case .home:
return "Home"
case let .public(local):
return local ? "Local" : "Federated"
case let .tag(hashtag):
return "#\(hashtag)"
case .list:
return "List"
case .direct:
return "Direct"
}
}
}