Actually, the singleton was easier to fix. I have just realised that replacing:
public static var shared = MyDatabaseService()
is more correct and fix the issue:
public static let shared = MyDatabaseService()
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: