0si43 / PiecesOfPaper

Note app focused on quick sketch by Apple Pencil
https://apps.apple.com/jp/app/like-a-paper/id1511690088#?platform=ipad
MIT License
62 stars 8 forks source link

Change data format to property list included tags and archived flag #62

Closed 0si43 closed 2 years ago

0si43 commented 2 years ago

It's like:

struct Model: Codable {
  var drawing: PKDrawing
  var tags: [String]
  var isArchived: Bool
  var createdDate: Date
}

And I needed TagList.

struct TagList {
  var tags: Set(String). // is this correct?
  var colors: [UIColor] = [.red, .blue. …]
// and something to match tags and colors 
}