Page MenuHomeMusing Studio

AccountView.swift
No OneTemporary

AccountView.swift

import SwiftUI
struct AccountView: View {
@ObservedObject var account: AccountModel
var body: some View {
if account.isLoggedIn {
HStack {
Spacer()
AccountLogoutView(account: account)
Spacer()
}
.padding()
} else {
AccountLoginView(account: account)
.padding()
}
}
}
struct AccountLogin_Previews: PreviewProvider {
static var previews: some View {
AccountView(account: AccountModel())
}
}

File Metadata

Mime Type
text/x-c
Expires
Fri, Apr 24, 12:18 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3682336

Event Timeline