NaiveDate
NaiveDate copied to clipboard
Fix custom to fully support Codable protocol when using SwiftData
Fixes certain crashes when using NaiveDate/Time with SwiftData.
Hi @kean and @liamnichols! Any chance of getting this merged in? This fixes some intermittent crashes we encountered when persisting NaiveDate objects with SwiftData. 🙏
Hey, sure, let me look into it. Do you what's the root cause of the crash?
Is this really needed? Wouldn’t it make more sense to make the NaiveDate RawRepresentable and also encode and decode it in string format 2017-12-30? I think that may be the best readable approach, even though it would be breaking.