Question:
I am using Xcode and swift. I am trying to create an app that automates receipt documentation instead of traditionally filling in the information in a spreadsheet.I have used the vision framework to pull data about the receipt and classify it. I was able to classify the essential information (Price, Date, etc), but I’m struggling with how I can store and display the data in a file.
I have looked into the different databases I could use, but I was wondering if there is a short way to upload this data from the app directly to Google Spreadsheets using swift. In short, even if I will go with the database approach, I would still need to display the data in an Excel or CSV way, and I’m unsure of what would be a good approach for that. Any ideas?
Answer:
You can use sql database but Core Data is very great too if you need to store datas. Specially if you need to sync them with iCloud. In the past i have always use sql but now i find CoreData just better, more clean and more easy (after some time to learn how to use it).About CSV you can export your datamodel with this sample of code:
If you have better answer, please add a comment about this, thank you!