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,51 @@
//
// ChannelTab.swift
// Yattee
//
// Navigation tabs for channel content views.
//
import Foundation
/// Represents different content tabs available on a channel page.
enum ChannelTab: String, CaseIterable, Identifiable {
case about
case videos
case playlists
case shorts
case streams
var id: String { rawValue }
/// Localized title for the tab.
var title: String {
switch self {
case .about:
return String(localized: "channel.tab.about")
case .videos:
return String(localized: "channel.tab.videos")
case .playlists:
return String(localized: "channel.tab.playlists")
case .shorts:
return String(localized: "channel.tab.shorts")
case .streams:
return String(localized: "channel.tab.streams")
}
}
/// SF Symbol name for the tab icon.
var systemImage: String {
switch self {
case .about:
return "info.circle.fill"
case .videos:
return "play.rectangle.fill"
case .playlists:
return "list.bullet.rectangle.fill"
case .shorts:
return "bolt.fill"
case .streams:
return "video.fill"
}
}
}