Renaming a SwiftData property? Without @𝐴𝑡𝑡𝑟𝑖𝑏𝑢𝑡𝑒(𝑜𝑟𝑖𝑔𝑖𝑛𝑎𝑙𝑁𝑎𝑚𝑒:), lightweight migration treats old and new names as separate schema elements — silently losing your data. A critical tip for anyone relying on auto-migration.

🔗: https://www.hackingwithswift.com/quick-start/swiftdata/how-to-rename-properties-without-losing-data by Paul Hudson (@twostraws)

#SwiftData #Swift #iOSDev

How to rename properties without losing data - a free SwiftData by Example tutorial

Learn Swift coding for iOS with these free tutorials

Hacking with Swift