Skip to content

Instantly share code, notes, and snippets.

@colinfwren
Created November 19, 2023 21:18
Show Gist options
  • Save colinfwren/d07a86f129cfff604b2220e9027a9d9b to your computer and use it in GitHub Desktop.
Save colinfwren/d07a86f129cfff604b2220e9027a9d9b to your computer and use it in GitHub Desktop.
Date Test Approach 1 ViewModel
class ApproachTodoListViewModel: Identifiable {
var modelContext: ModelContext
var title: String
var todos = [ApproachModel]()
var startDate: Date
var endDate: Date
var granularity: DateGranularity
// rest of the implementation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment