It ignores fileManager operations errors. ( Why?! )
I suppose that this method should be split apart into several smaller methods. For example, it would be great to have EncryptedFileManager or something like this.
This manager will handle encrypted fileManager part.
And also it would be great to have simple method that doesn't rely on NSPersistentCoordinator value at the end.
One of these methods could 'bless coordinator' with this store at url.
Well, it seems that this method take care of everything.
Also it is hard to adopt framework to
NSPersistentStoreContainer
.And its name:
It creates coordinator. ( Why?! )
It handles all stuff related to database file on disk.
I suppose that this method should be split apart into several smaller methods. For example, it would be great to have EncryptedFileManager or something like this. This manager will handle encrypted fileManager part.
And also it would be great to have simple method that doesn't rely on
NSPersistentCoordinator
value at the end.One of these methods could 'bless coordinator' with this store at url.