Created
July 25, 2019 14:47
-
-
Save sherifflight/87f48326b8b489adc769e19802326e75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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