Skip to content

Instantly share code, notes, and snippets.

@colinfwren
Created November 19, 2023 21:25
Show Gist options
  • Save colinfwren/4871f6651dad50fb5a85a7f197ac11f4 to your computer and use it in GitHub Desktop.
Save colinfwren/4871f6651dad50fb5a85a7f197ac11f4 to your computer and use it in GitHub Desktop.
Date Test Approach 2 View Model
class ApproachTodoListViewModel: Identifiable {
var modelContext: ModelContext
var title: String
var todos = [ApproachModel]()
var granularity: DateGranularity
var year: Int
var month: Int?
var week: Int?
var day: Int?
// rest of the implementation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment