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
RACsignal.toSignalProducer()
unavailable
#22
Comments
You can produce a signal.toSignalProducer().startWithSignal { signal, interrupter in
// Do your stuff with `signal`.
} |
Thanks for getting back to me. I'm afraid I didn't do a very good job describing my problem - I have an ObjC interface that looks like so:
Now, my view/business layer is written in swift mostly and I'm trying to combine
but I'm not sure how I can transform a In your response, you said What am I missing? Thanks! |
It seems it was replaced by |
It should be But AFAIK it still won’t compile — there are plenty of restrictions in Swift regarding Objective-C lightweight generics, and they are part of the rationale behind the current interop API besides Swiftification. At least last when we tried, the compiler rejects any extension referring to any generic parameter. |
Yes, so i manually wrap every rac_.. to SignalProducer ( |
The README.md reads:
I have an instance of
RACSignal
due to a mixed-language project. Looking through XCode's auto-completion suggestions, I'm not seeing anything liketoSignalProducer
.Could I get a code example of how to turn a
RACSignal
back toSignal
?Thanks!
The text was updated successfully, but these errors were encountered: