Tusker/Tusker/Extensions/Visibility+Helpers.swift

27 lines
478 B
Swift
Raw Normal View History

2018-08-31 02:30:19 +00:00
//
// Visibility+String.swift
// Tusker
//
// Created by Shadowfacts on 8/29/18.
// Copyright © 2018 Shadowfacts. All rights reserved.
//
2018-09-11 14:52:21 +00:00
import Pachyderm
2018-08-31 02:30:19 +00:00
2018-09-11 14:52:21 +00:00
extension Status.Visibility {
2018-08-31 02:30:19 +00:00
var displayName: String {
switch self {
case .public:
return "Public"
case .unlisted:
return "Unlisted"
case .private:
return "Private"
case .direct:
return "Direct"
}
}
}