Created
November 19, 2023 21:24
-
-
Save colinfwren/ab7bcf5cacf5c1ad55c899a1e64c898f to your computer and use it in GitHub Desktop.
Date Test Approach 2 Data 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
import Foundation | |
import SwiftData | |
@Model | |
final class ApproachModel { | |
var title: String | |
var year: Int | |
var month: Int? = nil | |
var week: Int? = nil | |
var day: Int? = nil | |
// rest of implementation | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment