Source code for the WriteFreely SwiftUI app for iOS, iPadOS, and macOS
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- import Foundation
-
- class PostStore: ObservableObject {
- @Published var posts: [Post]
-
- init(posts: [Post] = []) {
- self.posts = posts
- }
- }
-
- let testPostStore = PostStore(posts: testPostData)
|