mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2025-01-01 11:37:40 +01:00
22 lines
594 B
Swift
22 lines
594 B
Swift
//Made by Lumaa
|
|
|
|
import SwiftUI
|
|
|
|
struct AccountView: View {
|
|
@Environment(AccountManager.self) private var accountManager: AccountManager
|
|
|
|
@State private var navigator: Navigator = Navigator()
|
|
@State public var account: Account
|
|
|
|
var body: some View {
|
|
NavigationStack(path: $navigator.path) {
|
|
ProfileView(account: account, isCurrent: true)
|
|
.environmentObject(navigator)
|
|
.withAppRouter(navigator)
|
|
.onAppear {
|
|
account = accountManager.forceAccount()
|
|
}
|
|
}
|
|
}
|
|
}
|