Created
June 15, 2019 17:15
-
-
Save bljubisic/6792b3d5f05775298a6e44d274ac9a2b to your computer and use it in GitHub Desktop.
QuickToDo Gist
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
public struct Item: Codable{ | |
let name: String | |
let count: Int | |
let uploadedToICloud: Bool | |
let done: Bool | |
let shown: Bool | |
let createdAt: Date | |
} | |
extension Item { | |
init() { | |
name = "" | |
count = 0 | |
uploadedToICloud = false | |
done = false | |
shown = false | |
createdAt = Date() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment