1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-12 21:30:32 +05:30

Minor style fixes

This commit is contained in:
Arkadiusz Fal 2022-11-19 00:58:21 +01:00
parent 99769380fc
commit a14b0b12fa
3 changed files with 15 additions and 6 deletions

View File

@ -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
)
}
}

View File

@ -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 {

View File

@ -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 */