mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Refactor views
This commit is contained in:
@@ -13,6 +13,9 @@ import SwiftUI
|
||||
/// Download status is automatically shown from the download manager.
|
||||
/// On iOS/macOS, supports configurable tap zones for thumbnail and text area.
|
||||
struct VideoRowView: View {
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
@Environment(\.videoQueueContext) private var videoQueueContext
|
||||
|
||||
let video: Video
|
||||
var style: VideoRowStyle = .regular
|
||||
var watchProgress: Double? = nil
|
||||
@@ -24,9 +27,6 @@ struct VideoRowView: View {
|
||||
/// When true, disables internal tap handling so parent view can handle all taps.
|
||||
var disableInternalTapHandling: Bool = false
|
||||
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
@Environment(\.videoQueueContext) private var videoQueueContext
|
||||
|
||||
// Platform-specific fonts
|
||||
#if os(tvOS)
|
||||
private var titleFont: Font {
|
||||
|
||||
Reference in New Issue
Block a user