IceCubes/IceCubesApp/App/IceCubesApp.swift

29 lines
621 B
Swift

import SwiftUI
import Timeline
import Network
import KeychainSwift
@main
struct IceCubesApp: App {
public static let defaultServer = "mastodon.world"
@StateObject private var appAccountsManager = AppAccountsManager()
var body: some Scene {
WindowGroup {
TabView {
TimelineTab()
.tabItem {
Label("Home", systemImage: "globe")
}
SettingsTabs()
.tabItem {
Label("Settings", systemImage: "gear")
}
}
.environmentObject(appAccountsManager)
.environmentObject(appAccountsManager.currentClient)
}
}
}