Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F12142533
AccountView.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
645 B
Subscribers
None
AccountView.swift
View Options
import
SwiftUI
struct
AccountView
:
View
{
@
EnvironmentObject
var
model
:
WriteFreelyModel
var
body
:
some
View
{
if
model
.
account
.
isLoggedIn
{
HStack
{
Spacer
()
AccountLogoutView
()
.
withErrorHandling
()
Spacer
()
}
.
padding
()
}
else
{
AccountLoginView
()
.
withErrorHandling
()
.
padding
(.
top
)
}
}
}
struct
AccountLogin_Previews
:
PreviewProvider
{
static
var
previews
:
some
View
{
AccountView
()
.
environmentObject
(
WriteFreelyModel
())
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Oct 9, 10:23 PM (22 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3440856
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment