From d4a5545db6e229fbdb4c2c93d4985202d8370346 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 29 May 2022 15:35:16 +0200 Subject: [PATCH] Minor improvements --- Model/Player/PlayerControlsModel.swift | 8 +++++--- Shared/Player/VideoDetails.swift | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Model/Player/PlayerControlsModel.swift b/Model/Player/PlayerControlsModel.swift index 9025b5cd..af6b2064 100644 --- a/Model/Player/PlayerControlsModel.swift +++ b/Model/Player/PlayerControlsModel.swift @@ -94,9 +94,11 @@ final class PlayerControlsModel: ObservableObject { } func resetTimer() { - if !presentingControls { - show() - } + #if os(tvOS) + if !presentingControls { + show() + } + #endif removeTimer() timer = Timer.scheduledTimer(withTimeInterval: 5.0, repeats: false) { _ in diff --git a/Shared/Player/VideoDetails.swift b/Shared/Player/VideoDetails.swift index 45970f76..82119412 100644 --- a/Shared/Player/VideoDetails.swift +++ b/Shared/Player/VideoDetails.swift @@ -426,7 +426,7 @@ struct VideoDetails: View { var detailsPage: some View { Group { - Group { + VStack(alignment: .leading, spacing: 0) { if let video = player.currentVideo { VStack(spacing: 6) { HStack { @@ -440,6 +440,7 @@ struct VideoDetails: View { Divider() } + .padding(.bottom, 6) VStack(alignment: .leading, spacing: 10) { if let description = video.description {