Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F14177112
PostStore.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
364 B
Subscribers
None
PostStore.swift
View Options
import
Foundation
struct
PostStore
{
var
posts
:
[
Post
]
init
(
posts
:
[
Post
]
=
[])
{
self
.
posts
=
posts
}
mutating
func
add
(
_
post
:
Post
)
{
posts
.
append
(
post
)
}
mutating
func
purgeAllPosts
()
{
posts
=
[]
}
mutating
func
purgeRemotePosts
()
{
posts
=
posts
.
filter
{
$0
.
wfPost
.
postId
==
nil
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Apr 2, 5:41 AM (17 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3679313
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment