Created
November 19, 2023 21:25
-
-
Save colinfwren/4871f6651dad50fb5a85a7f197ac11f4 to your computer and use it in GitHub Desktop.
Date Test Approach 2 View Model
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
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