Source code for the WriteFreely SwiftUI app for iOS, iPadOS, and macOS
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

19 rader
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. }