Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F14171559
PostStore.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
270 B
Subscribers
None
PostStore.swift
View Options
import
Foundation
class
PostStore
:
ObservableObject
{
@
Published
var
posts
:
[
Post
]
init
(
posts
:
[
Post
]
=
[])
{
self
.
posts
=
posts
}
func
add
(
_
post
:
Post
)
{
posts
.
append
(
post
)
}
}
var
testPostStore
=
PostStore
(
posts
:
testPostData
)
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Apr 2, 2:20 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3673573
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment