mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-29 08:20:24 +01:00
33 lines
738 B
Swift
33 lines
738 B
Swift
import SwiftUI
|
|
import Timeline
|
|
import Network
|
|
import KeychainSwift
|
|
|
|
@main
|
|
struct IceCubesApp: App {
|
|
public static let defaultServer = "mastodon.social"
|
|
|
|
@StateObject private var appAccountsManager = AppAccountsManager()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
TabView {
|
|
TimelineTab()
|
|
.tabItem {
|
|
Label("Home", systemImage: "globe")
|
|
}
|
|
NotificationsTab()
|
|
.tabItem {
|
|
Label("Notifications", systemImage: "bell")
|
|
}
|
|
SettingsTabs()
|
|
.tabItem {
|
|
Label("Settings", systemImage: "gear")
|
|
}
|
|
}
|
|
.environmentObject(appAccountsManager)
|
|
.environmentObject(appAccountsManager.currentClient)
|
|
}
|
|
}
|
|
}
|