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()
|
|
}
|
|
}
|
|
}
|
|
}
|