Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13780539
ContentView.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
761 B
Subscribers
None
ContentView.swift
View Options
import
SwiftUI
struct
ContentView
:
View
{
@
ObservedObject
var
postStore
:
PostStore
@
ObservedObject
var
preferences
:
PreferencesModel
@
ObservedObject
var
account
:
AccountModel
var
body
:
some
View
{
NavigationView
{
SidebarView
()
PostList
(
selectedCollection
:
allPostsCollection
)
Text
(
"Select a post, or create a new draft."
)
.
foregroundColor
(.
secondary
)
}
.
environmentObject
(
postStore
)
.
environmentObject
(
preferences
)
.
environmentObject
(
account
)
}
}
struct
ContentView_Previews
:
PreviewProvider
{
static
var
previews
:
some
View
{
ContentView
(
postStore
:
testPostStore
,
preferences
:
PreferencesModel
(),
account
:
AccountModel
())
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Jan 30, 12:34 PM (2 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3606985
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment