Source code for the WriteFreely SwiftUI app for iOS, iPadOS, and macOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 line
610 B

  1. import Foundation
  2. import WriteFreely
  3. struct PostCollection: Identifiable {
  4. let id = UUID()
  5. let title: String
  6. var wfCollection: WFCollection?
  7. }
  8. extension PostCollection {
  9. static func == (lhs: PostCollection, rhs: PostCollection) -> Bool {
  10. return lhs.id == rhs.id
  11. }
  12. }
  13. let allPostsCollection = PostCollection(title: "All Posts")
  14. let draftsCollection = PostCollection(title: "Drafts")
  15. #if DEBUG
  16. let userCollection1 = PostCollection(title: "Collection 1")
  17. let userCollection2 = PostCollection(title: "Collection 2")
  18. let userCollection3 = PostCollection(title: "Collection 3")
  19. #endif