Refactor views

This commit is contained in:
Arkadiusz Fal
2026-02-09 01:13:02 +01:00
parent 8464464199
commit 612dce6b9f
43 changed files with 143 additions and 125 deletions

View File

@@ -9,11 +9,6 @@ import SwiftUI
#if !os(tvOS)
struct DownloadQualitySheet: View {
let video: Video
var streams: [Stream] = []
var captions: [Caption] = []
var dislikeCount: Int?
enum DownloadTab: String, CaseIterable {
case video
case audio
@@ -31,6 +26,11 @@ struct DownloadQualitySheet: View {
@Environment(\.dismiss) private var dismiss
@Environment(\.appEnvironment) private var appEnvironment
let video: Video
var streams: [Stream] = []
var captions: [Caption] = []
var dislikeCount: Int?
@State private var selectedTab: DownloadTab = .video
@State private var selectedVideoStream: Stream?
@State private var selectedAudioStream: Stream?