In CBL android version, there is a method getBlob() on Database that fetches attachments like getBlob("_attachements.something"). On Swift side however I don’t find this method on Database. There is a blob(forKey:) method on Document class, but when I tried it on “_attachments” or “_attachments.something”, both returned nil. value(forKey:) on the same document returns both as DictionaryObject.
The attachments were created on the server side via Sync Gateway api
So my question is, how to get attachments sync’ed down from server side other than getting it from sync gateway as it suggested in this doc: https://developer.couchbase.com/documentation/mobile/2.0/couchbase-lite/swift.html
Client OS: iOS 11
Server: SG 1.5