tv-anarchy/Sources/TVAnarchyiOS/TVAnarchyiOSApp.swift
Natalie 17cf518418 feat(ios): downloads (DownloadManager/DownloadsView), remote control view + bridge/player refinements
(cherry picked from commit a1f7e44e17bb41f48976b69f4dbe5278cbad06b2)
2026-06-09 06:38:45 -07:00

37 lines
1.2 KiB
Swift

// TVAnarchy iOS a thin bridge client: browse the network library, stream/play
// in-app via VLCKit, download for offline (with prefetch-ahead), and remote-
// control the Black TV. All heavy logic lives behind the plum-control-bridge.
import SwiftUI
import LilithDesignTokens
@main
struct TVAnarchyiOSApp: App {
@StateObject private var settings = BridgeSettings()
@StateObject private var downloads = DownloadManager()
var body: some Scene {
WindowGroup {
RootTabView()
.environmentObject(settings)
.environmentObject(downloads)
.preferredColorScheme(.dark)
.tint(AppColors.primary)
}
}
}
struct RootTabView: View {
var body: some View {
TabView {
LibraryView()
.tabItem { Label("Library", systemImage: "play.tv") }
DownloadsView()
.tabItem { Label("Downloads", systemImage: "arrow.down.circle") }
RemoteView()
.tabItem { Label("Remote", systemImage: "appletvremote.gen4") }
SettingsScreen()
.tabItem { Label("Settings", systemImage: "gearshape") }
}
}
}