From b199af05b8c4be46d8c34397bb302688fd3d0686 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 25 Jun 2022 18:54:05 +0200 Subject: [PATCH] Minor controls bar changes --- Shared/Views/ControlsBar.swift | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/Shared/Views/ControlsBar.swift b/Shared/Views/ControlsBar.swift index 59397a1a..775a4d65 100644 --- a/Shared/Views/ControlsBar.swift +++ b/Shared/Views/ControlsBar.swift @@ -221,10 +221,24 @@ struct ControlsBar: View { .foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor) .lineLimit(1) - Text(model.currentVideo?.author ?? "") - .font(.system(size: 12)) - .foregroundColor(.secondary) - .lineLimit(1) + HStack(spacing: 2) { + Text(model.currentVideo?.author ?? "") + .font(.system(size: 12)) + + if let channel = model.currentVideo?.channel, + let subsriptions = channel.subscriptionsString + { + HStack(spacing: 2) { + Image(systemName: "person.2.fill") + + Text(subsriptions) + } + .padding(.leading, 4) + .font(.system(size: 9)) + } + } + .lineLimit(1) + .foregroundColor(.secondary) } } .buttonStyle(.plain) @@ -246,7 +260,7 @@ struct ControlsBar: View { .indicator(.activity) } else { ZStack { - Color(white: 0.8) + Color(white: 0.6) .opacity(0.5) Image(systemName: "play.rectangle")