This commit is contained in:
Arkadiusz Fal
2022-06-30 10:05:32 +02:00
parent 485e1b060e
commit 117c4fc9b6
10 changed files with 58 additions and 25 deletions

View File

@@ -17,7 +17,8 @@ struct ChannelCell: View {
channel,
player: player,
recents: recents,
navigation: navigation
navigation: navigation,
navigationStyle: navigationStyle
)
} label: {
content

View File

@@ -3,6 +3,13 @@ import SDWebImageSwiftUI
import SwiftUI
struct ControlsBar: View {
@Binding var fullScreen: Bool
@State private var presentingShareSheet = false
@State private var shareURL: URL?
@Environment(\.navigationStyle) private var navigationStyle
@EnvironmentObject<AccountsModel> private var accounts
@EnvironmentObject<NavigationModel> private var navigation
@EnvironmentObject<PlayerControlsModel> private var playerControls
@@ -11,9 +18,6 @@ struct ControlsBar: View {
@EnvironmentObject<RecentsModel> private var recents
@EnvironmentObject<SubscriptionsModel> private var subscriptions
@State private var presentingShareSheet = false
@State private var shareURL: URL?
var presentingControls = true
var backgroundEnabled = true
var borderTop = true
@@ -21,8 +25,6 @@ struct ControlsBar: View {
var detailsTogglePlayer = true
var detailsToggleFullScreen = false
@Binding var fullScreen: Bool
var body: some View {
HStack(spacing: 0) {
detailsButton
@@ -170,7 +172,8 @@ struct ControlsBar: View {
video.channel,
player: model,
recents: recents,
navigation: navigation
navigation: navigation,
navigationStyle: navigationStyle
)
} label: {
Label("\(video.author) Channel", systemImage: "rectangle.stack.fill.badge.person.crop")

View File

@@ -197,7 +197,8 @@ struct VideoContextMenuView: View {
video.channel,
player: player,
recents: recents,
navigation: navigation
navigation: navigation,
navigationStyle: navigationStyle
)
} label: {
Label("\(video.author) Channel", systemImage: "rectangle.stack.fill.badge.person.crop")