Fix tab navigation selection

This commit is contained in:
Arkadiusz Fal 2021-07-19 23:27:18 +02:00
parent fa07e47a22
commit 132eb7b064
3 changed files with 3 additions and 5 deletions

View File

@ -114,7 +114,7 @@ final class PlayerState: ObservableObject {
logger.info("ALL assets loaded: \(stream.type), \(stream.description)") logger.info("ALL assets loaded: \(stream.type), \(stream.description)")
playStream(stream) playStream(stream)
if loadBest { if loadBest {
await self.loadBestStream() await self.loadBestStream()
} }

View File

@ -421,6 +421,7 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
37BD07BA2698AB60003EBB87 /* AppSidebarNavigation.swift */, 37BD07BA2698AB60003EBB87 /* AppSidebarNavigation.swift */,
37D4B0C32671614700C925CA /* AppTabNavigation.swift */,
37BD07B42698AA4D003EBB87 /* ContentView.swift */, 37BD07B42698AA4D003EBB87 /* ContentView.swift */,
37141672267A8E10006CA35D /* Country.swift */, 37141672267A8E10006CA35D /* Country.swift */,
372915E52687E3B900F5A35B /* Defaults.swift */, 372915E52687E3B900F5A35B /* Defaults.swift */,
@ -469,7 +470,6 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
373CFAEE2697A78B003CB2C6 /* AddToPlaylistView.swift */, 373CFAEE2697A78B003CB2C6 /* AddToPlaylistView.swift */,
37D4B0C32671614700C925CA /* AppTabNavigation.swift */,
37AAF2892673AB89007FC770 /* ChannelView.swift */, 37AAF2892673AB89007FC770 /* ChannelView.swift */,
373CFAC126966159003CB2C6 /* CoverSectionRowView.swift */, 373CFAC126966159003CB2C6 /* CoverSectionRowView.swift */,
373CFABD26966115003CB2C6 /* CoverSectionView.swift */, 373CFABD26966115003CB2C6 /* CoverSectionView.swift */,

View File

@ -2,9 +2,7 @@ import Defaults
import SwiftUI import SwiftUI
struct AppTabNavigation: View { struct AppTabNavigation: View {
@State private var showingOptions = false @State private var tabSelection: TabSelection = .subscriptions
@State private var tabSelection: TabSelection? = .subscriptions
var body: some View { var body: some View {
TabView(selection: $tabSelection) { TabView(selection: $tabSelection) {