Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10387186
MacAccountView.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
779 B
Subscribers
None
MacAccountView.swift
View Options
import
SwiftUI
struct
MacAccountView
:
View
{
@
EnvironmentObject
var
model
:
WriteFreelyModel
@
EnvironmentObject
var
errorHandling
:
ErrorHandling
var
body
:
some
View
{
Form
{
AccountView
()
}
.
onChange
(
of
:
model
.
hasError
)
{
value
in
if
value
{
if
let
error
=
model
.
currentError
{
self
.
errorHandling
.
handle
(
error
:
error
)
}
else
{
self
.
errorHandling
.
handle
(
error
:
AppError
.
genericError
())
}
model
.
hasError
=
false
}
}
}
}
struct
MacAccountView_Previews
:
PreviewProvider
{
static
var
previews
:
some
View
{
MacAccountView
()
.
environmentObject
(
WriteFreelyModel
())
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Nov 25, 1:53 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3106497
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment