-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind error #12
Comments
Hi @rmvz3, It looks like your code should compile just fine, the function signature hasn't changed. Did you use Carthage or Cocoapods to add Hanson to your project? And do you have an |
I'm using Cocoapods. Hanson is imported and Observable properties works fine but the bind function is not accepted. It's weird but I've just realized that it works in other places. Take a look at this screenshot. It tries to bind the same properties from different classes. |
That's weird indeed! Have you tried rebuilding the project after cleaning, removing the derived data and reinstalling the pod? If that doesn't work, can you discern any regularities in this error popping up in your project? The |
I've already tried the cleaning with no success. I think I found the reason. It seems that the problem arises just in classes that are not inherited from UIKit or Foundation. I don't know if this is an intentional behavior but at least there's an easy workaround |
Ah yes, that's true. Any class that is a subclass of You could use Hanson on your |
Thank you, Eric. I'm glad this has served to help to improve the code :) |
You're more than welcome @rmvz3! Thank you for contributing! I've published the updated podspec. |
Hi. Thank you for your work. I've been looking for a library just like yours. It's great for implementing MVVM without having to add RxSwift and so.
I'm getting an error when I try to use the bind function. For instance, if I write:
I get a Xcode error saying "Missing argument for parameter #3 in call". I don't know if you have changed the function signature from the one appearing in the readme but autocomplete is only offering me: bind(Int32, UnsafePointer!, socklen_t) which seems unrelated to your library.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: