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.
 
 
 

19 lines
355 B

  1. import Foundation
  2. import WriteFreely
  3. class PostCollection: Identifiable {
  4. let id = UUID()
  5. var title: String
  6. var wfCollection: WFCollection?
  7. init(title: String) {
  8. self.title = title
  9. }
  10. }
  11. extension PostCollection {
  12. static func == (lhs: PostCollection, rhs: PostCollection) -> Bool {
  13. return lhs.id == rhs.id
  14. }
  15. }