Skip to content

Instantly share code, notes, and snippets.

@tifoaudii
Created May 20, 2022 10:09
Show Gist options
  • Save tifoaudii/94c7b355019e45b5e8747683b2e8f9e8 to your computer and use it in GitHub Desktop.
Save tifoaudii/94c7b355019e45b5e8747683b2e8f9e8 to your computer and use it in GitHub Desktop.
protocol TaskModelConvertible {
func asTaskModel() -> TaskModel
}
struct TaskModel {
let title: String
let type: String
let deadline: Date
let color: NSObject?
let isCompleted: Bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment