jellyflood/Shared/Objects/PosterDisplayType.swift

36 lines
820 B
Swift

//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2025 Jellyfin & Jellyfin Contributors
//
import Defaults
import SwiftUI
// TODO: think about what to do for square (music)
enum PosterDisplayType: String, CaseIterable, Displayable, Storable, SystemImageable {
case landscape
case portrait
var displayTitle: String {
switch self {
case .landscape:
L10n.landscape
case .portrait:
L10n.portrait
}
}
var systemImage: String {
switch self {
case .landscape:
"rectangle.fill"
case .portrait:
"rectangle.portrait.fill"
}
}
}