I converted a csv file to a realm file and I want to use it in my app. This is my code atm:
func inLibrarayFolder(fileName: String) -> URL {
return URL(fil
When it comes to importing, the file being imported has to be in a very specific format along with a specific file name
Your Realm object name is Tree, so the imported file name needs to match
Tree.csv
along with that the first line of the file needs to match the classes property names, comma separated
id,br,nm1...
I would suggest creating a very small test file to import with 3-4 lines to get it working. Then, once you mastered that then import the big file.