mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Refactor views
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user