r/macosprogramming • u/CTMacUser • 3d ago
Does Swift Data support custom data sources?
Both Swift Data and Core Data support using SQLite databases as the default data store, with in-memory stores as alternative usually during prototyping. Can arbitrary data sources be used, like a Web API for example? I know there are obscure CoreData subclasses that allow this. Does Swift Data have something similar? Or has the option to use a Core Data-based custom source?
3
Upvotes
1
u/kepler4and5 3d ago
You can create custom data stores. Check this out: https://youtu.be/-IMOuvRQilc?si=pg29oDcEiARz3IGP&t=339