37 lines
1.2 KiB
Swift
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") }
|
|
}
|
|
}
|
|
}
|