How to retrive data through database observer in Swift4?

I am still not clear. Are you using Core Data in addition to CB Lite??

From code snippet above, it seems like you are using CBL 1.x ? Any reason you aren’t considering 2.0 which is in Developer Preview 21 - essentially comes down to the timeline you are targeting for your app release. The code snippet that I included is from 2.0