I recently noticed that some codes do init of instances like ClassName.self() for example:
let realm = try! Realm.self()
From the output and the usage thereafter, it is just like as though without it - Realm()
Is there any specific reason or usage for doing an init with .self?
self()
is used like that? On realm.io/docs/swift/latest I can see onlylet realm = try! Realm()
– and it should make no difference. – Scammony