I have an application that was first developed for the IPhone and then added support for mac os. Much of this has been developed in Objective C - this is all working fine. As I add new functions I like to do the new development in Swift. Is this possible? In my AppDelegate (Objective C) I save the accessToken - when I try to use it to list a folder I get error -999. Here is a sample:
let client = DropboxClient(accessToken: obj.accesstoken)
_ = client.files.listFolder(path: "/Backup")
.response { response, error in
if let result = response {
print("Folder contents:")
for entry in result.entries {
print(entry.name)
}
} else if let error = error
{
print(error)
}
}
any help would greatly be appreciated.