Closed Mmisiek closed 3 years ago
I will look into it.
From: Grant Grueninger notifications@github.com Reply-To: ggruen/CloudKitSyncMonitor reply@reply.github.com Date: Tuesday, March 2, 2021 at 11:00 To: ggruen/CloudKitSyncMonitor CloudKitSyncMonitor@noreply.github.com Cc: Mmisiek github@misiaszek.org, Author author@noreply.github.com Subject: Re: [ggruen/CloudKitSyncMonitor] Can I used the class from Objective-C code ? (#2)
Hi Mmisiek - I'm not sure. I've bridged from Swift to Objective-C before, but not the other way around. Try searching in your favorite search engine for "How to use Swift library in Objective-C" - if it's possible to access Swift from Objective-C, then you should be able to use CloudKitSyncMonitor. You might need to modify the library to do so (e.g. adding @objc before methods). If you do so, please submit a pull request so others can benefit!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Did you manage to get CloudKitSyncMonitor working from Objective-C? If so, can you give us a code snippet? If not, I'll just close this issue.
Honestly I gave up on Cloud Kit, the updates to cloud are very slow and unreliable. Your tool is a must.
Thank you - good luck with whatever sync solution you came up with. :)
Hi Mmisiek - I'm not sure. I've bridged from Swift to Objective-C before, but not the other way around. Try searching in your favorite search engine for "How to use Swift library in Objective-C" - if it's possible to access Swift from Objective-C, then you should be able to use CloudKitSyncMonitor. You might need to modify the library to do so (e.g. adding
@objc
before methods). If you do so, please submit a pull request so others can benefit!