Knock icon indicating copy to clipboard operation
Knock copied to clipboard

Updating code and corresponding Readme

Open jaymutzafi opened this issue 8 years ago • 0 comments

I've just tried to implement the swift version on Xcode 9. But can't get this to work. Since I don't fully understand the code I am not certain where exactly is the issue

I'm getting a few errors on the swift file right off the bat and most can be fixed with Xcode's autosuggestions however I believe it's fixes are messing with how this is supposed to work.

In addition to that, the instructions in the read me don't seem to be up to date with the KnockToReact.swift file code as far as I can tell. I am getting these errors:

for class ViewController: UIViewController, KnockHelperProtocol { i am getting: Use of undeclared type 'KnockHelperProtocol'. I assume this is now KnockToReactDelegate?

for let knock = KnockToReact() i am getting: 'KnockToReact' initializer is inaccessible due to 'private' protection level

And i think `knockPerformed()' has changed to knockEventPerformed ?

With any changes I make to resolve the errors I have not been able to get a knock active. Would love help on this if at all possible. Thanks in advance.

jaymutzafi avatar Sep 22 '17 23:09 jaymutzafi