Yattee v2 rewrite

This commit is contained in:
Arkadiusz Fal
2026-02-08 18:31:16 +01:00
parent 20d0cfc0c7
commit 05f921d605
1043 changed files with 163875 additions and 68430 deletions

View File

@@ -0,0 +1,18 @@
//
// Video+DeArrow.swift
// Yattee
//
// Extension for DeArrow title resolution on Video.
//
import Foundation
extension Video {
/// Returns the DeArrow-replaced title if available, otherwise the original title.
///
/// Usage: `video.displayTitle(using: appEnvironment?.deArrowBrandingProvider)`
@MainActor
func displayTitle(using provider: DeArrowBrandingProvider?) -> String {
provider?.title(for: self) ?? title
}
}