Skip to content

Instantly share code, notes, and snippets.

@sherifflight
Created July 25, 2019 14:47
Show Gist options
  • Save sherifflight/87f48326b8b489adc769e19802326e75 to your computer and use it in GitHub Desktop.
Save sherifflight/87f48326b8b489adc769e19802326e75 to your computer and use it in GitHub Desktop.
import UIKit
import Foundation
enum Importance: String {
case high = "important"
case normal = "normal"
case unimportant = "unimportant"
}
class Note {
let uid: String
let title: String
let content: String
let color: UIColor
let importance: Importance
let selfDestructionDate: Date?
init(uuid: String = UUID().uuidString, title: String, content: String, color: UIColor = UIColor.white, importance: Importance, selfDestructionDate: Date? = nil) {
self.uid = uuid
self.title = title
self.content = content
self.color = color
self.importance = importance
self.selfDestructionDate = selfDestructionDate
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment