* Playback Quality - Learn More * TODO: Fix leading not working on second line. * Remove layoutDirection. * Implement for tvOS. Slightly different spacing. * VStack * WIP - tvOS Implementaiton. SUBJECT TO CHANGE / ELIMINATION. * Background Icon & formatting * wip * Review Changes. Remove unused Strings, clean up comments. * Remove duplicate items used for testing * Remove tvOS scrollIfLargerThanContainer for now. * Edit Text-based Metadata * ViewModel Cleanup * use binding extensions * Huge overhaul: - Fix the notification when metadata was updated to work with 100% consistency - Flip the locking to be true -> lock like server - Redo the whole itemEditorViewModel to be more in-line with other viewModels | also fixes iPad weirdness - Use itemViewModel for the edit view so I can just reuse those existing notifications instead of recreating the wheel - More human dates for people - Date of death instead of "End date" (yikes) * String fixes & overview size * Fix build issues & String cleanup * fix overview sizing, cleanup * itemMetadataWasEdited -> temMetadataDidChange * Creation of the NavigationBarMenuButtonModifier for an "ellipsis.circle" menu object in the toolbar. Makes it easier to ensure that this format looks the same throughout. * Custom vs Official Rating + Menu Button Label change * Menu button spacing and groundwork for other menu items (canDownload) since we already have the bool available. Currently disabled. * Linting --------- Co-authored-by: Ethan Pippin <ethanpippin2343@gmail.com>
29 lines
735 B
Swift
29 lines
735 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) 2024 Jellyfin & Jellyfin Contributors
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum BoxSetDisplayOrder: String, CaseIterable, Identifiable {
|
|
case dateModified = "DateModified"
|
|
case sortName = "SortName"
|
|
case premiereDate = "PremiereDate"
|
|
|
|
var id: String { rawValue }
|
|
|
|
var displayTitle: String {
|
|
switch self {
|
|
case .dateModified:
|
|
return L10n.dateModified
|
|
case .sortName:
|
|
return L10n.sortName
|
|
case .premiereDate:
|
|
return L10n.premiereDate
|
|
}
|
|
}
|
|
}
|