Bubble/Threaded/Views/AccountView.swift

22 lines
594 B
Swift
Raw Normal View History

2023-12-29 11:17:37 +01:00
//Made by Lumaa
import SwiftUI
struct AccountView: View {
@Environment(AccountManager.self) private var accountManager: AccountManager
2024-01-21 13:09:50 +01:00
@State private var navigator: Navigator = Navigator()
@State public var account: Account
2023-12-29 11:17:37 +01:00
var body: some View {
NavigationStack(path: $navigator.path) {
ProfileView(account: account, isCurrent: true)
.environmentObject(navigator)
.withAppRouter(navigator)
.onAppear {
account = accountManager.forceAccount()
2023-12-31 03:03:35 +01:00
}
}
}
2023-12-29 11:17:37 +01:00
}