From a14b0b12fa2ac79d3fa5d6a8e3a70efbf5212832 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 19 Nov 2022 00:58:21 +0100 Subject: [PATCH] Minor style fixes --- Extensions/View+Borders.swift | 17 +++++++++++++---- Model/Player/Backends/AVPlayerBackend.swift | 2 +- Yattee.xcodeproj/project.pbxproj | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Extensions/View+Borders.swift b/Extensions/View+Borders.swift index 1bc622f3..c2444650 100644 --- a/Extensions/View+Borders.swift +++ b/Extensions/View+Borders.swift @@ -19,12 +19,21 @@ extension View { } private func verticalEdgeBorder(_ edge: Alignment, height: Double, color: Color) -> some View { - overlay(Rectangle().frame(width: nil, height: height, alignment: .top) - .foregroundColor(color).ignoresSafeArea(.all, edges: .horizontal), alignment: edge) + overlay( + Rectangle() + .frame(width: nil, height: height, alignment: .top) + .foregroundColor(color) + .ignoresSafeArea(.all, edges: .horizontal), + alignment: edge + ) } private func horizontalEdgeBorder(_ edge: Alignment, width: Double, color: Color) -> some View { - overlay(Rectangle().frame(width: width, height: nil, alignment: .leading) - .foregroundColor(color), alignment: edge) + overlay( + Rectangle() + .frame(width: width, height: nil, alignment: .leading) + .foregroundColor(color), + alignment: edge + ) } } diff --git a/Model/Player/Backends/AVPlayerBackend.swift b/Model/Player/Backends/AVPlayerBackend.swift index 844e828e..9e0c1813 100644 --- a/Model/Player/Backends/AVPlayerBackend.swift +++ b/Model/Player/Backends/AVPlayerBackend.swift @@ -130,7 +130,7 @@ final class AVPlayerBackend: PlayerBackend { preservingTime: Bool, upgrading _: Bool ) { - if var url = stream.singleAssetURL { + if let url = stream.singleAssetURL { model.logger.info("playing stream with one asset\(stream.kind == .hls ? " (HLS)" : ""): \(url)") if video.isLocal, video.localStreamIsFile { diff --git a/Yattee.xcodeproj/project.pbxproj b/Yattee.xcodeproj/project.pbxproj index 3390d4b1..6bb3a3ee 100644 --- a/Yattee.xcodeproj/project.pbxproj +++ b/Yattee.xcodeproj/project.pbxproj @@ -2620,6 +2620,7 @@ 37D4B0C82671614900C925CA /* Yattee (iOS) */, 37D4B0CE2671614900C925CA /* Yattee (macOS) */, 37D4B157267164AE00C925CA /* Yattee (tvOS) */, + 37095E7E291DC85400301883 /* Open in Yattee */, 37A3B19C27258492000FB5EE /* Periphery (iOS) */, 37FD43E62704A2240073EE42 /* Periphery (macOS) */, 37FD43EB2704A7710073EE42 /* Periphery (tvOS) */, @@ -2627,7 +2628,6 @@ 37D4B0DD2671614900C925CA /* Tests (macOS) */, 37D4B170267164B000C925CA /* Tests (tvOS) */, 3712643A2865FF4500D77974 /* Shared Tests */, - 37095E7E291DC85400301883 /* Open in Yattee */, ); }; /* End PBXProject section */